13 lines
316 B
JavaScript
13 lines
316 B
JavaScript
//// [for-of44.ts]
|
|
var array: [number, string | boolean | symbol][] = [[0, ""], [0, true], [1, Symbol()]]
|
|
for (var [num, strBoolSym] of array) {
|
|
num;
|
|
strBoolSym;
|
|
}
|
|
|
|
//// [for-of44.js]
|
|
var array = [[0, ""], [0, true], [1, Symbol()]];
|
|
for (var [num, strBoolSym] of array) {
|
|
num;
|
|
strBoolSym;
|
|
}
|