Answers for "change list of objects to list js"

1

change list of objects to list js

var inputArray = [{
  value: 1
}, {
  value: 2
}];

var normalizedArray = inputArray.map((obj) => {
  return obj.value;
});

console.log(normalizedArray.join(","))
Posted by: Guest on August-18-2021

Code answers related to "change list of objects to list js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language