testFor()
Creates functions for testing values.
This function is valid in v2.23.0 to v2.24.3. This function has been downloaded 36 times.["details", "age", ">=", 18]
can be used to make sure that object.details.age >= 18
occurs (object
would be passed to the function returned by testFor()
). If no comparator is supplied ===
will be used. If one of the paths doesn't exist the entire test will fail.true
, otherwise it will return false
.This function directly requires the following function which is included automatically:
testForNot()
This function is directly required by the following functions:
everyWhere()
findWhere()
testForNot()