User:Chlod (test)/es6.js

const object = {a: 1, b: 2, c: 3};

const es6OK = ( => {	for (const [key, val] of Object.entries(object)) {		switch (key) {			case "a":				return val === 1;			case "b":				return val === 2;			case "c":				return val === 3;		}	} });

console.log(`ES6: ${es6OK ? "OK!": ":("}`);