Javascript Array filter(cb, context)

Description

Javascript Array filter(cb, context)


/**//from  w ww. j  av  a2  s  .  c o  m
 * @include arrayFilter
 * @param {function} cb - cb(value, i, arr)
 * @param {object} [context]
 * @return {array}
 */
Array.prototype.filter = Array.prototype.filter || function(cb, context){
  return arrayFilter(this, cb, context);
};



PreviousNext

Related