JSFiddle - React, Tailwind, and code Playground
by Ariel Balter
JavaScript
var p = {a:1, b:"two", c:[1,2,3], d: {r:3, s:"four"}};
for (let [key, value] of p.entries()) {
console.log(key); // This is the key;
console.log(value); // This is the value;
}
/*
for (let [key, value] of Object.entries(p)) {
console.log(key); // This is the key;
console.log(value); // This is the value;
}
*/