check Package Match.All

85 views
Skip to first unread message

pba

unread,
Feb 13, 2015, 3:03:38 AM2/13/15
to meteo...@googlegroups.com
Hi,

I would like to check an object structure like this(coffee):

for obj in [ {type:'x'}, {col:'x'}]
  check  obj
,
 
Match.Where (o)->
    check
Match.OneOf
        
Match.ObjectIncluding
          type:String
     
,
        
Match.ObjectIncluding
                      col:String
         


Is there any shorter way to do this? Basically I am looking for Match.All, so I could Do
for obj in [ {type:'x'}, {col:'x'}]
 check obj
,
   
Match.All
     
Match.ObjectIncluding
      type
:String
    
,
     
Match.ObjectIncluding
      col
:String

am I overlooking some obvious existing functionality?
Thanks 
  Paul
Reply all
Reply to author
Forward
0 new messages