findBy()
Returns the first object in an array that matches the given properties.
Kind: global function
Returns: Object | undefined - The first matching object, or undefined.
| Param | Type | Default | Description |
|---|---|---|---|
| objects | Array.<Object> | The array to search. | |
| [findProperties] | Object | | Key-value pairs to match against. |
Example
const home = ARM.findBy(addresses, { attributes: { kind: 'home' } })Last updated on