Open shannonmoeller opened 10 years ago
So, this would defer to native too, right? So it actually returns a function.
var departments = customers.map(plucks('department')).filter(unique());
Exactly. The returned function would have access to a private array of values to check against.
Arguments:
depts.filter(unique({
deep: true,
comparator: alphabeticEqualityFunc
}))
I think we should keep this simple and just do a ===
check, unless a specific comparator is provided as an argument.
depts.filter(unique(deep()));
depts.filter(unique(alphabeticEquality()));
depts.filter(unique(deep(alphabeticEquality())));
Self explanatory.