🔷TypeScriptadvanced
Question 1 of 10
function* gen() {
yield 1;
return 2;
yield 3;
}
const arr = [...gen()];
console.log(arr.length, arr[0]);What's the output?
Question 1 of 10
function* gen() {
yield 1;
return 2;
yield 3;
}
const arr = [...gen()];
console.log(arr.length, arr[0]);What's the output?