Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

Latest commit

 

History

History
25 lines (18 loc) · 576 Bytes

index.md

File metadata and controls

25 lines (18 loc) · 576 Bytes

$not projection

Returns the boolean opposite of the result of the passed function

Signature

statement (Function) - A function that takes subject as its first and only argument

subject (Object) - The object that contains the requested values

TYPE SIGNATURES

Function -> Object -> *
(Function, Object) -> *

EXAMPLE

const myObject = {
    itemsInTheFrige: ['eggs', 'beer', 'milk']
};

$not($contains('beer', 'itemsInTheFrige'), myObject); // returns false
$not($contains('wine', 'itemsInTheFrige'), myObject); // returns true