SLQ
Perform multi-level logical operations as a query over javascript object and/or array.
Install
λ npm install --save slq
Usage
// require the library const SLQ = ; // instantiate class object with either an object or an array // for objects, it places the value for every key in the expression to evaluate // valid existent key should be provided in the query // for example, create instance with an object: let src = foo: true bar: false baz: false ; // and, go wild src; // false src; // true src; // false src; // false src; // false src; // false src; // false src; // true src; // true src; // true src; // true // there's no limit to how deep you want to go src; // true // for arrays, it checks if provided key is in the array or not // for example: let src = 'foo' 'bar' 'unicorn'; src; // true src; // false src; // true src; // false src; // true