JS - Object.values()

0 votes
211 views
added Mar 6, 2019 in Javascript by LC Marshal Captain (25,790 points)
const propertyElement = {
  a: 'Bungalow',
  b: 42000,
  c: false
};

console.log(Object.values(propertyElement));
// expected output: Array ["Bungalow", 42000, false]

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...