16 lines
310 B
TypeScript
16 lines
310 B
TypeScript
//// [iteratorSpreadInArray10.ts]
|
|
var array = [...new SymbolIterator];
|
|
|
|
class SymbolIterator {
|
|
[Symbol.iterator]() {
|
|
return this;
|
|
}
|
|
}
|
|
|
|
//// [iteratorSpreadInArray10.js]
|
|
var array = [...new SymbolIterator];
|
|
class SymbolIterator {
|
|
[Symbol.iterator]() {
|
|
return this;
|
|
}
|
|
}
|