app/scripts/datePickerUtils.js
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);
    }
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);
    }
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 ) ; }
Checks if an event targeted at a specific picker, via either a string name, or an array of strings.
Checks if an event targeted at a specific picker via either a string name or an array of strings .