Javascript Array map(cb, context)

Description

Javascript Array map(cb, context)


/**/*from  w w  w . ja  v a  2s  .  c  om*/
 * @include arrayMap
 * @param {function} cb - cb(value, i, arr)
 * @param {object} [context]
 * @return {array}
 */
Array.prototype.map = Array.prototype.map || function(cb, context){
  return arrayMap(this, cb, context);
};



PreviousNext

Related