Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 440 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 440 Bytes

keyword

Keyword matching algorithm

Thanks to

Usage

import matchKeyword from 'blue-keyword';

const products = ['Tagful Tee', 'Rectangle Logo', 'Crewneck'];
const product = products.find(product => matchKeyword(product, '+Tagful, -Tagless'));

console.log(product); // => 'Tagful Tee'