equal Function

Checks to see if the second argument is in the array passed as the first argument. Returns an array containing the matching values.

Summary

ElementFunction
ReturnsArray

Arguments

objArray[required] Array containing the values to check.
valstring|number[required] The value to search for within the first argument.

Example

nano.equal(['a', 'b', 'c'], foo);