数组方法:在Array.prototype中定义
ECMAScript3: 12个
- join
- reverse
- sort
- concat
- slice
- splice
- push\pop
- unshift\shift
- toString\toLocaleString 区别在于new Date( ) “Thu Dec 14 2017 11:35:15 GMT+0800 (CST)” / “2017/12/14 上午11:35:15”
ECMAScript5: 10个
- forEach
- map
- filter
- every\some
- reduce\reduceRight
- indexOf\lastIndexOf
- Array.isArray( )8
ECMAScript6: 6个
- Array.from
- Array.of
- copyWithin
- find
- findIndex
- fill
ECMAScript7: 1个
- includes
字符串方法:在String.prototype中定义
ECMAScript3: 8个
- split
- slice
- substring
- substr
- concat
- indexOf
- lastIndexOf
- charAt
ECMAScript5: 1个
- trim
ECMAScript6: 8个
- includes
- startsWith
- endsWith
- at
- repeat
- padStart\padEnd
- 字符串模板
对象方法:在Object.prototype中定义
ECMAScript3:
ECMAScript5:
- Object.isFrozen
- Object.freeze
- Object.seal
- Object.isSealed
- Object.isExtensible
- Object.preventExtensions
- Object.getOwnPropertyNames
- Object.getOwnPropertyDescriptor
- Object.defineProperties
- Object.defineProperty
- Object.create
ECMAScript6:
- Object.is
- Object.assign
- Object.setPrototypeOf()
- Object.getPrototypeOf()
迭代的方法:
- Object.keys
- Object.values
- Object.entries
- for….of
- for….in