isOf()

Creates functions for testing if a value "is" (or "is not") a value.

This function is valid in v2.7.0 to v2.12.3. This function has been downloaded 0 times.

Parameters

{*} value
The value that the returned function will always be used to check against.
{boolean=} opt_negate Optional, Default:false
Determines if the returned function will always check if passed values are NOT value.
{boolean=} opt_traverseArray Optional, Default:false
If value is an array, the returned function will check the passed value against all of the items within value.

Returns

{Function}
Function that accepts one argument which will be checked against value. The function will return a boolean value when called indicating if it matches value or not (also depending on the value of opt_negate).