Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/*!
* Seed :: Query (utils) - MongoDB style array filtering
* Copyright(c) 2011-2014 Jake Luer
* MIT Licensed
*/
var pathval = require('pathval');
var type = require('type-detect').Library();
var comparators = require('./comparators');
/*!
* Custom type
*/
type.define('simplex', function(o) {
if ('string' === type.of(o)) return true;
if ('number' === type.of(o)) return true;
if ('boolean' === type.of(o)) return true;
return false;
})
/*!
* Given the query input, create a re-usable definition