1 contributor
Like
Install uniq-by as a package?
Copied
npm i @bit/justin-capalbo.ramda.uniq-by
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
uniqBy (
fn:
Function
,list:
) : Array
Array
Returns a new list containing only one copy of each element in the original
list, based upon the value returned by applying the supplied function to
each list element. Prefers the first item if the supplied function produces
the same value on two items. R.equals
is used for comparison.
Example
Arguments
fn:
Function
A function used to produce a value to use during comparisons.
list:
Array
The array to consider.
Returns
Array
The list of unique items.