findBy

Function

Return an entry from an array by a property name

  • findBy(arr: any[], prop: string, value: any) : any

Parameters

Parameter Type Default Notes
arr Required any[]
prop Required string
value Required any

Returns

any

Function defined in common/src/util.ts:74