1.0.4 • Published 4 years ago
blue-keyword v1.0.4
keyword
Keyword matching algorithm
Thanks to
- @Sodex234 – Algorithm
- @aabbccsmith – Types and publishing
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'