Skip to Content

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.

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

Example

const home = ARM.findBy(addresses, { attributes: { kind: 'home' } })
Last updated on