Closed chobo2 closed 6 years ago
The get
method's signature is:
get(value, [default], [minScore])
In your case, you probably want to do something like this:
const fuzzyMatches = dic.gt('Equipment Id', null, 0.5)
I see on the interactive documentation that I had an incorrect example. I just fixed that so hopefully it should be clearer.
@Glench
Ah, ic but would that mean fuzzMatches would = null if nothing is found and if found it would be an array of data?
Exactly. That's what currently happens when you call .get()
with no [default]
parameter.
Cool Thanks for the help.
No problem!
Hi
I popped this list into your interactive example
and used "Equipment Id", 0.5 and no match was found. Which is great that is what I expected but when I do it in my code
Result comes back:
[0.33333333333333337, "Hour Meter"]