bindCompare()

Creates a compare function which binds the namespaces within the two given objects.

This function is valid in v2.8.0 to v2.14.0. This function has been downloaded 43 times.

Parameters

{Array} namespaces
An array of namespaces to compare. Each namespace can be an array of strings and/or numbers, a string or a number. The order of the namespaces will determine the order in which the comparison occurs.
{boolean=} opt_negate Optional, Default:false
Specifies whether or not the comparison value should be negated.

Returns

{Function}
A comparison function with the namespaces to be checked bound within the function.

Required Functions

This function requires the following functions which are included automatically:

  • compare()
    Simple compare function typically use in sorting.
  • isArray()
    Determines if the given value is of type Array as specified by typeOf().
  • getAt()
    Gets the value under the given root object and path.