krisk / Fuse

Lightweight fuzzy-search, in JavaScript
https://fusejs.io/
Apache License 2.0
18.36k stars 772 forks source link

returned `id` is always a string #270

Closed Prinzhorn closed 4 years ago

Prinzhorn commented 5 years ago

selection_404

> new Fuse([{id: 1, name: "Prinzhorn"}], {id: 'id', keys: ['name']}).search('Prinzhorn')
< ["1"]

It should return [1]. The id property should not be touched in any way and returned as is.

github-actions[bot] commented 4 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days