Skip to Content

findIndexBy()

Returns the index of the first object in an array that matches the given properties.

Kind: global function
Returns: number - The index of the first match, or -1 if not found.

ParamTypeDefaultDescription
objectsArray.<Object>The array to search.
[findIndexProperties]ObjectKey-value pairs to match against.

Example

const idx = ARM.findIndexBy(addresses, { id: 123 })
Last updated on