We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tc39/proposal-top-level-await
#x
tc39/proposal-class-fields
#x in obj
tc39/proposal-private-fields-in-in
tc39/proposal-class-static-block
d
tc39/proposal-regexp-match-indices 新增d修饰符,可以让exec()、match()的返回结果添加indices属性,在该属性上面可以拿到匹配的开始位置和结束位置。
exec()
match()
indices
const text = 'zabbcdef'; const re = /ab/d; const result = re.exec(text); result.index // 1 result.indices // [ [1, 3] ]
tc39/proposal-error-cause
const actual = new Error('an error!', { cause: 'Error cause' }); actual.cause; // 'Error cause'
str.at()
arr.at()
tc39/proposal-relative-indexing-method
const sentence = 'This is a sample sentence' sentence.at(0); // 'T' sentence.at(-1); // 'e' sentence.at(100) // undefined
The text was updated successfully, but these errors were encountered:
No branches or pull requests
模块顶层await
tc39/proposal-top-level-await
#x
私有属性、私有方法tc39/proposal-class-fields
#x in obj
检查存在私有属性、方法tc39/proposal-private-fields-in-in
class静态块
tc39/proposal-class-static-block
正则
d
修饰符tc39/proposal-regexp-match-indices
新增
d
修饰符,可以让exec()
、match()
的返回结果添加indices
属性,在该属性上面可以拿到匹配的开始位置和结束位置。err.cause
tc39/proposal-error-cause
str.at()
、arr.at()
tc39/proposal-relative-indexing-method
参考资料
The text was updated successfully, but these errors were encountered: