docs: function matcher(match) {
    if (match instanceof RegExp) {
      return function(criteria) {
        return match.test(criteria);
      };
    }
  
    return function(criteria) {
      return criteria === match;
    };
  }