linq.js
function any(predicate) {
  predicate = typeof predicate === 'function' ? predicate : util.defaultPredicate;

  for (let item of this) {
    if (predicate(item)) return true;
  }

  return false;
}
function any(predicate) {
  predicate = typeof predicate === 'function' ? predicate : util.defaultPredicate;

  for (let item of this) {
    if (predicate(item)) return true;
  }

  return false;
}
function any ( predicate ) { predicate = typeof predicate === 'function' ? predicate : util . defaultPredicate ; for ( let item of this ) { if ( predicate ( item ) ) return true ; } return false ; }
Determines whether a sequence contains any elements.

@param {(Function)} predicate The function called per iteraction till returns true.
@return Any elements satisfy a condition returns true, or returns false.
predicate: (T) -> Boolean
Determines whether a sequence contains any elements .