function* generator() {
yield 'a';
yield* 'bcd';
yield 'e';
}
console.log([...generator()]);Ответ: [ 'a', 'b', 'c', 'd', 'e' ]
JavaScript test | #JavaScript
JA JavaScript test @js_test · 9.68K subscribers function* generator() {
yield 'a';
yield* 'bcd';
yield 'e';
}
console.log([...generator()]);