Skip to Content

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.

ParamTypeDescription
objectsArray.<Object>The source array.
uniqByPropertystringThe property to determine uniqueness by.

Example

const unique = ARM.uniqBy(addresses, 'attributes.city')
Last updated on