This repository was archived by the owner on May 1, 2023. It is now read-only.
This repository was archived by the owner on May 1, 2023. It is now read-only.
Feature suggestion - pass array of objects as targets for findBestMatch function #125
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels