9 lines
227 B
TypeScript
9 lines
227 B
TypeScript
//// [ES5For-ofTypeCheck4.ts]
|
|
var union: string | string[];
|
|
for (const v of union) { }
|
|
|
|
//// [ES5For-ofTypeCheck4.js]
|
|
var union;
|
|
for (var _i = 0, union_1 = union; _i < union_1.length; _i++) {
|
|
var v = union_1[_i];
|
|
}
|