is()

Tests to see if two or more values are exactly the same. This is similar to === but will also indicate that NaN is NaN and will indicate that -0 is not 0.

This function is valid in v2.0.0 to v2.12.3. This function has been downloaded 22 times.

Parameters

{*} x
A value.
{*} y
Values to be compared to x for equality.

Returns

{boolean}
true if all of the parameters passed in are the same, otherwise false is returned.

Required Function

This function requires the following function which is included automatically:

  • slice()
    Slice does not modify the original array, but instead returns a shallow copy of elements from the original array.