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 packages/common/src/utils/map-by.ts:6