code: function typeChecker(type) {
    var typeString = "[object " + type + "]";
    return function(value) {
      return Object.prototype.toString.call(value) === typeString;
    };
  }
docs: /*
  
  Copryright 2018, Craig Condon
  Licensed under MIT
  
  Filter JavaScript objects with mongodb queries