Skip to content

Instantly share code, notes, and snippets.

@maechabin
Last active January 7, 2019 12:48
Show Gist options
  • Save maechabin/eb9127807e01d44e77d2f60e4b8ff512 to your computer and use it in GitHub Desktop.
Save maechabin/eb9127807e01d44e77d2f60e4b8ff512 to your computer and use it in GitHub Desktop.

About array.prototype

ES3

http://www.ecma-international.org/publications/files/ECMA-ST-ARCH/ECMA-262,%203rd%20edition,%20December%201999.pdf

  • Array.prototype.consructor
  • Array.prototype.toString()
  • Array.prototype.toLocaleString()
  • Array.prototype.concat([item1[,item2[,...]]])
  • Array.prototype.join(separator)
  • Array.prototype.pop()
  • Array.prototype.push([item1[,item2[,...]]])
  • Array.prototype.reverse()
  • Array.prototype.shift()
  • Array.prototype.slice(start, end)
  • Array.prototype.sort(comparefn)
  • Array.prototype.splice(start, deleteCount[,item1[,item2[,...]]])
  • Array.prototype.unshift([item1[,item2[,...]]])
  • Array.length

ES5

http://www.ecma-international.org/ecma-262/5.1/index.html#sec-15.4

  • Array.prototype.indexOf(searchElement[,fromIndex])
  • Array.prototype.lastIndexOf(searchElement[,fromIndex])
  • Array.prototype.every(callbackfn[, thisArg])
  • Array.prototype.some(callbackfn[, thisArg])
  • Array.prototype.forEach(callbackfn[, thisArg])
  • Array.prototype.map(callbackfn[, thisArg])
  • Array.prototype.filter(callbackfn[, thisArg])
  • Array.prototype.reduce(callbackfn[, initialValue])
  • Array.prototype.reduceRight(callbackfn[, initialValue])
  • Array.isArray(arg)
  • Array.constructor

ES6

http://www.ecma-international.org/ecma-262/6.0/index.html#sec-array-objects

  • Array.prototype.copyWithin(target, start[, end])
  • Array.prototype.entries()
  • Array.prototype.fill(value[, start[, end]])
  • Array.prototype.find(predicate[, thisArg])
  • Array.prototype.findIndex(predicate[, thisArg])
  • Array.prototype.keys()
  • Array.prototype.values()
  • Array.prototype [ @@iterator ] ( )
  • Array.prototype [ @@unscopables ]
  • Array.form
  • Array.of(...items)

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array#Array_generic_methods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment