Determine if an array or object is equivalent with another, not recursively.
Usage
equals(a, b, [compare])
Check if a
and b
are pretty much the same thing. Note this won't be the
case if a
and b
are different types (e.g. Array vs. Object, String vs.
Function).
By default, all comparisons between values are using the strict equality
(===
) operator. You can also pass in a custom compare
function to override
this behavior.
var equals =// true:// true:// false:// true:
License
MIT. See LICENSE.md for details.