1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-29 05:42:20 +00:00

更新 'WeaKSet' 名词拼写

This commit is contained in:
Vincent Hy 2019-09-11 14:02:19 +08:00
parent 6efba60c38
commit 6128c2eec3

View File

@ -354,7 +354,7 @@ const ws = new WeakSet(b);
// Uncaught TypeError: Invalid value used in weak set(…)
```
上面代码中,数组`b`的成员不是对象,加入 WeaKSet 就会报错。
上面代码中,数组`b`的成员不是对象,加入 WeakSet 就会报错。
WeakSet 结构有以下三个方法。