kc-search-res
v1.0.5
Published
[js] Search results array.
Downloads
4
Readme
SearchRes
[js] Search results array.
Install
npm install kc-search-res
Use
var searchRes = require('./search-res');
var arr = [
{ a: 'hi', b: 'world'},
{ a: 'hello', b: 'world'},
{ a: 'goodbye', b: 'world'},
{ a: 'byebye', b: 'world'}
];
var res = searchRes(arr, 'bye');
console.log(res);