Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit df3a82c

Browse files
Add yield* Set example
1 parent 58ace58 commit df3a82c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎JavaScript/g-yield-star.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
function* genFn() {
44
yield* [10, 20, 30];
5+
//yield* new Set([10, 20, 30]);
56
}
67

78
const c = genFn();

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /