[Solved] I need help converting this array of objects into an array of arrays [closed]


Assuming the declaration:

var myArr = [
  {
    "messages": {
      "m1": {
        "message": "Relay malfunction found. Cause: moth.",
        "sender": "ghopper"
      }
    },
    "title": "Historical Tech Pioneers",
    "key": "one"
  }
];

You can iterate over each element and reassign the property using:

myArr.forEach(o => o.title = [o.title]);

Or without ES6:

myArr.forEach(function (o) {
  o.title = [o.title]);
});

2

solved I need help converting this array of objects into an array of arrays [closed]