swc/crates/swc_ecma_parser/tests/tsc/useObjectValuesAndEntries2.ts

10 lines
139 B
TypeScript
Raw Normal View History

// @target: es5
// @lib: es5
var o = { a: 1, b: 2 };
for (var x of Object.values(o)) {
let y = x;
}
var entries = Object.entries(o);