code: function checkRemote (remotes, remote) {
    if (remotes === "ALL") {
      return true;
    }
  
    if (!_.isArray(remotes)) {
      remotes = _.invoke(remotes.split(","), "trim");
    }
  
    return _.any(remotes, _.partial(minimatch, remote));
  }
docs: Check if hook is enabled for requested remote String, String → Boolean