9.1.1 for...in
const SYM = Symbol();
const o = { a: 1, b: 2, c: 3, [SYM]: 4 };
for (let prop in o) {
if (!o.hasOwnProperty(prop)) continue;
console.log(`${prop}: ${o[prop]}`);
}a: 1
b: 2
c: 3Last updated
const SYM = Symbol();
const o = { a: 1, b: 2, c: 3, [SYM]: 4 };
for (let prop in o) {
if (!o.hasOwnProperty(prop)) continue;
console.log(`${prop}: ${o[prop]}`);
}a: 1
b: 2
c: 3Last updated