You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's common to filter lists with mixed-type data. fuzzy currently throws an error if you pass it a number value.
One workaround is to convert numbers to strings before passing values to fuzzy. The downside to this approach is that you have to throw out (sometimes essential) type information about your data. Ideally, fuzzy would handle both strings and numbers internally, return values that preserve the original type.
The text was updated successfully, but these errors were encountered:
Fix in Mapbox's fork: mapbox#1 – @mattyork let me know if you'd like to have this – it introduces a breaking change: renames 'string' to 'val' in the returned objects.
It's common to filter lists with mixed-type data. fuzzy currently throws an error if you pass it a number value.
One workaround is to convert numbers to strings before passing values to fuzzy. The downside to this approach is that you have to throw out (sometimes essential) type information about your data. Ideally, fuzzy would handle both strings and numbers internally, return values that preserve the original type.
The text was updated successfully, but these errors were encountered: