Skip to main content

array_index_by_equality

array_index_by_equality(array, element, equals) ⇒ number

Works similarly to Array.prototype.indexOf, but instead of strict equality - uses provided equality method

Kind: global function
Returns: number - index of first match or -1 if no matches found

ParamType
arrayArray.<T>
elementT
equalsfunction