react-match-finder

1.0.19 • Public • Published

#Usage

import getMatches from 'react-match-finder'

const array = ('test', ['test', 'testing', {name: 'test'}, [{name: 'testing'}], 'nothing here'], 50)
const searchInput = 'test'
// match percentage
const percentMatch = 50
const matches = getMatches('test', array, percentMatch) //  returns ['test', 'testing', {name: 'test'}, [{name: 'testing'}]]

Package Sidebar

Install

npm i react-match-finder

Weekly Downloads

8

Version

1.0.19

License

MIT

Unpacked Size

11 kB

Total Files

4

Last publish

Collaborators

  • oluwatob-i