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.
| Param | Type | Default | Description |
|---|---|---|---|
| objects | Array.<Object> | The array to search. | |
| [findIndexProperties] | Object | | Key-value pairs to match against. |
Example
const idx = ARM.findIndexBy(addresses, { id: 123 })Last updated on