Skip to content

thanhnd1o2/rn-fuzzy-search

rn-fuzzy-search

for fuzzy search by native

Installation

npm install rn-fuzzy-search

Usage

import { search } from 'rn-fuzzy-search';

// Example usage
const result = await search(
  'Doe',
  [
    { id: '1', name: 'Steven Wilson' },
    { id: '2', name: 'John Doe' },
    { id: '3', name: 'Stephen Wilkson' },
  ],
  {
    keyField: 'id',
    fields: 'name',
    threshold: 0.1,
    onlyIdReturned: false,
  }
);

console.log(result);

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published