src/utils/hammer-overrides.js
function some(array, predict) {
  for (let i = 0; i < array.length; i++) {
    if (predict(array[i])) {
      return true;
    }
  }
  return false;
}
function some(array, predict) {
  for (let i = 0; i < array.length; i++) {
    if (predict(array[i])) {
      return true;
    }
  }
  return false;
}
function some ( array , predict ) { for ( let i = 0 ; i < array . length ; i ++ ) { if ( predict ( array [ i ] ) ) { return true ; } } return false ; }
Helper function that returns true if any element in an array meets given criteria.
Because older browsers do not support `Array.prototype.some`
@params array {Array}
@params predict {Function}
Helper function that returns true if any element in an array meets given criteria . Because older browsers do not support Array . prototype . some