krisk / Fuse

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

Fix out of bounds array access in remove method #484

Closed noc7c9 closed 3 years ago

noc7c9 commented 3 years ago

First off, thanks for the library! It's really nice to work with. :)

I noticed that the remove method passes undefined to the predicate. So yeah, out of bounds access.

I'm in a bit of a rush so I don't have the time to write a test, apologies. 🙏