Class Predicate

Object
   |
   +--Predicate

class Predicate


Creates a predicate from an object, returning a single-argument function that returns true on certain input, as described below.

In general, wherever a predicate is asked for by a function, any of the types in the left-hand column of the table below may be supplied.


Defined in lens.js


typeof pbehavior of returned function in terms of argument c
functionp
Predicatep.matches
Arraytrue if c is a value in p
objecttrue if c is value of one of p's properties
anything elsetrue if c === p
Field Summary
 Object matches
          
 
Constructor Summary
Predicate(p)
           
 

Field Detail

matches

Object matches

Constructor Detail

Predicate

Predicate(p)


Documentation generated by JSDoc on Wed Feb 14 15:36:01 2007