isOf()

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

This function is valid in v2.13.0 to v2.13.1. This function has been downloaded 6 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).

Required Function

This function requires the following function which is included automatically:

  • nativeType()
    Gets the native type name of a primitive or an object. Unlike YourJS.typeOf(), the types are solely determined by the system.