Number.prototype[Symbol.iterator] = function*() { yield *['a','b','c'] };
console.log([...1]);
Post #1845
7.92K
CHALLENGE ❓
- 🤔 12
- ❤ 4
- 👍 3
JA JavaScript @javascript · 31K subscribers
Number.prototype[Symbol.iterator] = function*() { yield *['a','b','c'] };
console.log([...1]);