本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
原语对象
支持ES 的原语对象及其函数。
Object
支持支持支持对象:
-
Object.assign()
-
Object.entries()
-
Object.hasOwn()
-
Object.keys()
-
Object.values()
-
delete
字符串
支持支持支持字符串:
-
String.prototype.length()
-
String.prototype.charAt()
-
String.prototype.concat()
-
String.prototype.endsWith()
-
String.prototype.indexOf()
-
String.prototype.lastIndexOf()
-
String.raw()
-
String.prototype.replace()
注意 不支持正则表达式。
-
String.prototype.replaceAll()
注意 不支持正则表达式。
-
String.prototype.slice()
-
String.prototype.split()
-
String.prototype.startsWith()
-
String.prototype.toLowerCase()
-
String.prototype.toUpperCase()
-
String.prototype.trim()
-
String.prototype.trimEnd()
-
String.prototype.trimStart()
数字
支持支持支持数字:
-
Number.isFinite
-
Number.isNaN