1. \[\`Array.prototype.at()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/at) \*\*\`at()\`\*\* 方法接收一个整数值并返回该索引对应的元素,允许正数和负数。负整数从数组中的最后一个元素开始倒数。 2. \[\`Array.prototype.concat()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/concat) 连接数组? 3. \[\`Array.prototype.copyWithin()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/copyWithin) 复制数组 4. \[\`Array.prototype.entries()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/entries) 一个迭代器 该对象返回包含 key value a\[1,2,3,4\] -\> {0,1} {1,2} ..... 5. \[\`Array.prototype.every()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/every) 有两个参数 一个回调函数 一个指定回调函数值 回调函数对数组迭代符合回调函数的关系 全部符合 返回true 否则 false 6. \[\`Array.prototype.fill()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/fill) 填充对应数组区间 三个参数 填充值 开始索引 结束索引但不包括 7. \[\`Array.prototype.filter()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/filter) 有两个参数 一个回调函数 一个指定回调函数值 对数组迭代 对数据进行测试并返回 浅拷贝 不改变数组数据 8. \[\`Array.prototype.find()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/find) 有两个参数 一个回调函数 一个指定回调函数值 对数组正向迭代 返回数组符合回调函数 第一个的测试数据 9. \[\`Array.prototype.findIndex()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex) 有两个参数 一个回调函数 一个指定回调函数值 对数组正向迭代 返回数组符合回调函数 第一个的测试数据的索引 10. \[\`Array.prototype.findLast()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/findLast) 有两个参数 一个回调函数 一个指定回调函数值 对数组正向迭代 返回数组符合回调函数 最后的测试数据 11. \[\`Array.prototype.findLastIndex()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/findLastIndex) 有两个参数 一个回调函数 一个指定回调函数值 对数组正向迭代 返回数组符合回调函数 最后一个的测试数据的索引 12. \[\`Array.prototype.flat()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/flat) 创造一个新数组 并展开数组的子数组并链接 13. \[\`Array.prototype.flatMap()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/flatMap) ==\> 调用一次 map 之后调用 flat 14. \[\`Array.prototype.forEach()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach) 迭代器 15. \[\`Array.from()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/from) \*\*\`Array.from()\`\*\* 静态方法从\[可迭代\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Iteration_protocols#可迭代协议)或\[类数组\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Guide/Indexed_collections#使用类数组对象)对象创建一个新的浅拷贝的数组实例 16. \[\`Array.fromAsync()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/fromAsync) \*\*\`Array.from() \`\*\* 转换\[异步的可迭代\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Iteration_protocols#异步迭代器和异步可迭代协议)对象到数组, 静态方法从\[可迭代\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Iteration_protocols#可迭代协议)或\[类数组\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Guide/Indexed_collections#使用类数组对象)对象创建一个新的浅拷贝的数组实例 17. \[\`Array.prototype.includes()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/includes) 判断数组是否包含某个元素 包含返回true否则 返回false 18. \[\`Array.prototype.indexOf()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf) 一个参数 返回符合参数下标索引 19. \[\`Array.isArray()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray) 判断是否是个数组 20. \[\`Array.prototype.join()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/join) 一个参数 将数组所有元素以参数链接成一个字符串 21. \[\`Array.prototype.keys()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/keys) 迭代器的key 22. \[\`Array.prototype.lastIndexOf()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/lastIndexOf) 一个参数 返回符合参数最后一个数值下标索引 23. \[\`Array.prototype.map()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/map) 有两个参数 一个回调函数 一个指定回调函数值 对数组正向迭代 返回回调函数处理的数据 24. \[\`Array.prototype.pop()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/pop) 出栈 把数组最后一个元素移除并返回 25. \[\`Array.prototype.push()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/push) 进栈 把元素放入数组最后 26. \[\`Array.prototype.reduce()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce) 回调函数 参数1 回调函数 对数组进行从左到右遍历 回调函数两个参数 第一个值在参数1 没有时 默认为数组第一个 第二个参数为数组第二个元素 回调函数返回处理结果作为回调函数的第一个参数 27. \[\`Array.prototype.reduceRight()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/reduceRight) 回调函数 参数1 回调函数 对数组进行从右到左遍历 回调函数两个参数 第一个值在参数1 没有时 默认为数组第一个 第二个参数为数组第二个元素 回调函数返回处理结果作为回调函数的第一个参数 28. \*\[\`Array.prototype.reverse()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse)\* 数组反转 29. \[\`Array.prototype.shift()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/shift) 移除数组第一个元素并返回 并更改数组长度。 30. \[\`Array.prototype.slice()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/slice) 截取数组元素 两个参数 从第一个参数为索引 截取到 第二个参数索引但不包括 不影响数组元素 31. \[\`Array.prototype.some()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/some) 有两个参数 一个回调函数 一个指定回调函数值 回调函数 数组迭代符合回调函数的关系 部分负荷 返回true 全部不符合 false 32. \[\`Array.prototype.sort()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) 数组排序 33. \[\`Array.prototype.splice()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/splice) 删除对应数组并替换 三个参数 开始索引 删除长度 替换数值 34. \[\`Array.prototype.toLocaleString()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/toLocaleString) 根据本地方法转换成字符串 35. \[\`Array.prototype.unshift()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/unshift) 把元素放到数组第一个元素前面 并返回数组的新长度。 36. \[\`Array.prototype.values()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/values) 迭代器的值 37. Array.prototype.with() 返回一个新数组 对第一个参数索引的值替换成 第二个参数 不改变原数组 1. \[\`String.prototype.at()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/at) \*\*\`at()\`\*\* 方法接受一个整数值,并返回一个新的 \[\`String\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String),该字符串由位于指定偏移量处的单个 UTF-16 码元组成。该方法允许正整数和负整数。负整数从字符串中的最后一个字符开始倒数。 2. \[\`String.prototype.charAt()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/charAt) 传入参数索引 返回该索引字符串的字符(以UTF-16编码) 中文其他形式 3. \[\`String.prototype.charCodeAt()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/charCodeAt) 传入参数索引 返回该字符的 编码(UTF-16) 4. \[\`String.prototype.codePointAt()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/codePointAt) 传入参数索引 返回该字符的 编码 包含中文 (编码全) 5. \[\`String.prototype.concat()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/concat) 链接字符串并返回新的字符串 6. \[\`String.prototype.endsWith()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith) 字符串结尾是否以 输入参数结尾 7. \[\`String.fromCharCode()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode) 根据编码返回对应字符 (UTF-16) 8. \[\`String.fromCodePoint()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/fromCodePoint) 根据编码返回对应字符 包含中文 (编码全) 9. \[\`String.prototype.includes()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/includes) 判断字符串是否包含 输入参数 10. \[\`String.prototype.indexOf()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf) 正向匹配 返回第一个符合 参数的索引下标 11. \[\`String.prototype.isWellFormed()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/isWellFormed) 12. \[\`String.prototype.lastIndexOf()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf) 逆向匹配 返回第一个符合 参数的索引下标 13. \[\`String.prototype.localeCompare()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare) 14. \[\`String.prototype.match()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/match) 正则匹配 返回 第一个 符合条件 15. \[\`String.prototype.matchAll()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/matchAll) 正则匹配 返回 全部 符合条件 16. \[\`String.prototype.normalize()\`(en-US)\](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize) 17. \[\`String.prototype.padEnd()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/padEnd) 参数 数组长度 填充元素 对字符串尾部填充 18. \[\`String.prototype.padStart()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/padStart) 参数 数组长度 填充元素 对字符串头部填充 19. \[\`String.prototype.repeat()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/repeat) 参数 根据参数对字符串使用次数并链接为新的字符串 20. \[\`String.prototype.replace()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/replace) 匹配替换 第一参数可为字符和正则表达式 第二参数 替换元素 返回修改后的新的字符串 //参数为字符串只替换符合的第一个 21. \[\`String.prototype.replaceAll()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll) 符合的全部替换 第一参数可为字符和正则表达式 第二参数 替换元素 返回修改后的新的字符串 22. \[\`String.prototype.search()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/search) 字符串根据正则表达式搜索 返回符合第一个字符元素的索引 23. \[\`String.prototype.slice()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/slice) 截取字符串 两个参数 字符串从第一个参数截取到第二个参数但不包含 返回新的字符串 参数可为负数 24. \[\`String.prototype.split()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/split) 字符串转数组 根据参数把字符串切割并保存为数组 25. \*\[\`String.prototype.startsWith()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith)\* 字符串结尾是否以 输入参数开头 26. \[String.prototype.substr()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/substring) 截取字符串 第一个参数为开始索引 第二参数为截取长度 27. \[String.prototype.substring()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/substring) 截取字符串 两个参数 字符串从第一个参数截取到第二个参数但不包含 参数不可为负数 ==》0 28. \[\`String.prototype.toLocaleLowerCase()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/toLocaleLowerCase) 根据本地方法转小写 29. \[\`String.prototype.toLocaleUpperCase()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/toLocaleUpperCase) 根据本地方法转大写 30. \[\`String.prototype.toLowerCase()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/toLowerCase) 转小写 31. \[\`String.prototype.toString()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/toString) 32. \[\`String.prototype.toUpperCase()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase) 转大写 33. \[\`String.prototype.toWellFormed()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/toWellFormed) 34. \[\`String.prototype.trim()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/trim) 去除字符串两边空白 35. \[\`String.prototype.trimEnd()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/trimEnd) 去除字符串尾部空白 36. \[\`String.prototype.trimStart()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/trimStart) 去除字符串头部空白 37. String.prototype.valueOf() 1. \[\`Math.abs()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/abs) 绝对值 2. 3. \[\`Math.cbrt()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/cbrt) 4. \[\`Math.ceil()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/ceil) 四舍五入 趋近小 5. \[\`Math.clz32()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/clz32) 6. \[\`Math.cos()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/cos) 7. \[\`Math.cosh()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/cosh) 8. \[\`Math.exp()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/exp) 9. \[\`Math.expm1()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/expm1) 10. \[\`Math.floor()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/floor) 四舍五入 趋近大 11. \[\`Math.fround()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/fround) 12. \[\`Math.hypot()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/hypot) 13. \[\`Math.imul()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/imul) 14. \[\`Math.log()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/log) 15. \[\`Math.log10()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/log10) 16. \[\`Math.log1p()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/log1p) 17. \[\`Math.log2()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/log2) 18. \*\[\`Math.max()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/max)\* 最大 19. \[\`Math.min()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/min) 最小 20. \[\`Math.pow()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/pow) x,y x的y次方 21. \[\`Math.random()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/random) 随机一个趋近于1的随机数 22. \[\`Math.round()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/round) 四舍五入 0.50 -\>0舍弃 0.51 -\>1 进位 23. \[\`Math.sign()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/sign) 24. \[\`Math.sin()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/sin) 25. \[\`Math.sinh()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/sinh) 26. \[\`Math.sqrt()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/sqrt) 开根号 27. \[\`Math.tan()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/tan) 28. \[\`Math.tanh()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/tanh) 29. \[\`Math.trunc()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/trunc) 反弦定理 30. \[\`Math.acos()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/acos) 31. \[\`Math.acosh()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/acosh) 32. \[\`Math.asin()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/asin) 33. \[\`Math.asinh()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/asinh) 34. \[\`Math.atan()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/atan) 35. \[\`Math.atan2()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/atan2) 36. \[\`Math.atanh()\`\](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/atanh)
原创
js
本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。
评论交流
欢迎留下你的想法