Skip to content

Commit

Permalink
Fix code examples (#29774)
Browse files Browse the repository at this point in the history
fix: fix code result error for set.@@iterator and update the code example of set.clear
  • Loading branch information
JasonLamv-t authored Oct 23, 2023
1 parent b4862a9 commit 4776b8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const setIter = mySet[Symbol.iterator]();

console.log(setIter.next().value); // "0"
console.log(setIter.next().value); // 1
console.log(setIter.next().value); // Object
console.log(setIter.next().value); // {}
```

## Specifications
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ console.log(mySet.has("foo")); // true
mySet.clear();

console.log(mySet.size); // 0
console.log(mySet.has("bar")); // false
console.log(mySet.has("foo")); // false
```

## Specifications
Expand Down

0 comments on commit 4776b8f

Please sign in to comment.