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

10 lines
142 B
TypeScript
Raw Normal View History

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