Use case:
Instead of wanting to compare ["foo","bar","baz"], it can be useful to pass in an array of objects for which you want to compare one property, i.e.
[
{ name: "foo", otherProperty: 23 },
{ name: "bar", otherProperty: 27 },
{ name: "baz", otherProperty: 99 }
]
and instruct the function to compare based on the name property, but return the whole object in the response.
I have already created a PR #124 for this. Just need approval
Use case:
Instead of wanting to compare
["foo","bar","baz"], it can be useful to pass in an array of objects for which you want to compare one property, i.e.and instruct the function to compare based on the
nameproperty, but return the whole object in the response.I have already created a PR #124 for this. Just need approval