mapBy

Function

Map over an array returning the specified property for each entry

  • mapBy(prop: string, arr: any) : any

Parameters

Parameter Type Default Notes
prop Required string

Property to extracct

arr Optional any []

array of objects

Returns

any

Function defined in common/src/utils/map-by.ts:6