krisk / Fuse

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

Return removed item when calling `removeAt` #675

Closed GMartigny closed 1 year ago

GMartigny commented 1 year ago

Description

When calling remove, Fuse.js returns all removed items. This is not the case with removeAt and I found it confusing.

Describe the solution you'd like

Saving the result of the splice method and returning it to the user would be great.

Describe alternatives you've considered

I can look at the docs in the fuse instance before calling removeAt.

github-actions[bot] commented 1 year ago

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