uniqBy()
Returns a new array with duplicate objects removed, comparing by a given property.
Kind: global function
Returns: Array.<Object> - Array with duplicates (by property) removed.
| Param | Type | Description |
|---|---|---|
| objects | Array.<Object> | The source array. |
| uniqByProperty | string | The property to determine uniqueness by. |
Example
const unique = ARM.uniqBy(addresses, 'attributes.city')Last updated on