pablocattaneo
8/17/2018 - 6:18 PM

Object to Array

const object1 = {
  a: 'somestring',
  b: 42,
  c: false
};

console.log(Object.values(object1));
// expected output: Array ["somestring", 42, false]