Skip to content

Instantly share code, notes, and snippets.

@rafaelmaeuer
Created October 25, 2023 10:06
Show Gist options
  • Save rafaelmaeuer/f4fdfe0eff6debef1fd8688a079525a9 to your computer and use it in GitHub Desktop.
Save rafaelmaeuer/f4fdfe0eff6debef1fd8688a079525a9 to your computer and use it in GitHub Desktop.
const object = {a:2, b:4, c:6, d:8};
Object.entries(object).forEach(([key, value], index) => {
console.log(`${index}: ${key} = ${value}`);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment