String.prototype.replaceAll: 展示 'hello world'.replaceAll('l', 'L') // 'heLLo worLd'Promise.any: 返回第一个获得的 promise 或 AggregateError| 名称 | 描述 | 备注 |
|---|---|---|
| Promise.allSettled | 不短路 | 在 ES2020 中添加 ✅ |
| Promise.all | 输入值被拒绝时发生短路 | 在 ES2015 中添加 ✅ |
| Promise.race | 输入值稳定后发生短路 | 在 ES2015 中添加 ✅ |
| Promise.any | 满足输入值时发生短路 | 这个建议 🆕 预定于 ES2021 |
Numeric separators: 1_000_000_000, 1_123_123_321.38String.prototype.matchAll: 结合 Array.from 使用9213817878187189378912737189738912na?.b?.c?.d, a?.b?.()null or undefined 时有效,对空字符串和0不作处理import.meta: 未理解,未实践