Skip to content

Instantly share code, notes, and snippets.

@tofusoup429
Created December 4, 2020 02:35
Show Gist options
  • Save tofusoup429/38b4abed9442c95f96de45d979e5ac7a to your computer and use it in GitHub Desktop.
Save tofusoup429/38b4abed9442c95f96de45d979e5ac7a to your computer and use it in GitHub Desktop.
const employeeSalaryObject = {Mike:5000, Sandy:8000, Clark:9000}
const keyArray = Object.keys(employeeSalaryObject); // convert to keys-array
const size = keyArray.length;
console.log(size) //3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment