index.js
function objectToFunction(obj) {
  var fns = Object.keys(obj)
    .map(function (key) {
      return toBoolFunction(key, obj[key]);
    });
  return function(o){
    for (var i = 0; i < fns.length; i++) {
      if (!fns[i](o)) return false;
    }
    return true;
  }
}
function objectToFunction(obj) {
  var fns = Object.keys(obj)
    .map(function (key) {
      return toBoolFunction(key, obj[key]);
    });
  return function(o){
    for (var i = 0; i < fns.length; i++) {
      if (!fns[i](o)) return false;
    }
    return true;
  }
}
function objectToFunction ( obj ) { var fns = Object . keys ( obj ) . map ( function ( key ) { return toBoolFunction ( key , obj [ key ] ) ; } ) ; return function ( o ) { for ( var i = 0 ; i < fns . length ; i ++ ) { if ( ! fns [ i ] ( o ) ) return false ; } return true ; } }
Convert `obj` into a match function.

@param  {Object} obj
@return {Function}
@api private
Convert obj into a match function .