code: function (targetIDs, pickerID) {
        function matches(id) {
          if (id instanceof RegExp) {
            return id.test(pickerID);
          }
          return id === pickerID;
        }
  
        if (angular.isArray(targetIDs)) {
          return targetIDs.some(matches);
        }
        return matches(targetIDs);
      }
docs: Checks if an event targeted at a specific picker, via either a string name, or an array of strings.