Return an array of Elm, that is a subset of arr, and all the elements
are pair-wise distinct by their values given by fieldGetter.
Type Parameters
Elm
the element type.
F
the field type, or value type of Elm for comparison. Note that
the type should be identity-comparable, because this implementation uses
Javascript's Set.
Return an array of
Elm
, that is a subset ofarr
, and all the elements are pair-wise distinct by their values given byfieldGetter
.