$and projection
Performs all passed operations until one of them returns false
Signature
statements (...Function) - Multiple functions that take subject
as their first and only argument
subject (Object) - The object that contains the requested values
TYPE SIGNATURES
...Function -> Object -> *
(...Function, Object) -> *
EXAMPLE
const myObject = {
allBugsFixed: false,
itemsInTheFrige: ['eggs', 'beer', 'milk']
};
//
// Happy?
//
$and(
$get('allBugsFixed'),
$contains('beer', 'itemsInTheFrige'),
myObject
); // returns false