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

9 lines
126 B
TypeScript
Raw Normal View History

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