Skip to content

Instantly share code, notes, and snippets.

@ma-9
Created November 1, 2019 18:28
Show Gist options
  • Save ma-9/b1ca71796198ec3ddcfad886a7545796 to your computer and use it in GitHub Desktop.
Save ma-9/b1ca71796198ec3ddcfad886a7545796 to your computer and use it in GitHub Desktop.
JavaScript ES8 Features (Object.values and Object.entries)
// Object Values and Object Entries
const Employes = {
name: 'Manav',
age: '21',
contact: ['9662260013','[email protected]'],
callme: function(){
return this.name + this.age;
}
}
// Object.values();
Object.values(Employes);
// Object.entries();
console.log(Object.entries(Employes));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment