Skip to content

Instantly share code, notes, and snippets.

@M1n007
Created May 25, 2020 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save M1n007/c0792a9976093aa8cf2ccd19d443c7e3 to your computer and use it in GitHub Desktop.
Save M1n007/c0792a9976093aa8cf2ccd19d443c7e3 to your computer and use it in GitHub Desktop.
const etl = {
easy: '1',
to: '2',
learn: '3',
a:'s'
}
function run(etl){
const arrayKey = Object.keys(etl);
const objectArray = Object.entries(etl);
objectArray.map(([key, value]) => {
console.log(`Key ${key} memiliki value ${value}`)
})
console.log('\n');
console.log(`Object etl mempunyai key sebanyak ${arrayKey.length}`)
}
run(etl);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment