新特性
- 導入屬性和 JSON 模組
- 迭代器輔助方法
- 新的 Set 方法
- Promise.try()
- 模式匹配,讓條件更清晰
- 具有記錄和元組的不可變資料結構
- 使用 WealRefs 和 FinalizationRegistry 實現更好的記憶體管理
- 改進的字串和陣列方法
- 類別中的私有方法和字段
Set 方法組合集合:
- Set.prototype.intersection(other)
- Set.prototype.union(other)
- Set.prototype.difference(other)
- Set.prototype.symmetricDifference(other)
Set 方法檢視集合關係:
- Set.prototype.isSubsetOf(other)
- Set.prototype.isSupersetOf(other)
- Set.prototype.isDisjointFrom(other)

留言
張貼留言