Adding new attributes to an array of objects

PHOTO EMBED

Wed Jun 07 2023 21:16:48 GMT+0000 (Coordinated Universal Time)

Saved by @gbritgs

this.array = this.array.map(function (el) {
  var o = Object.assign({}, el);
  o.disableCheckbox = null;
  o.isChecked = true;
  
  return o;
});
content_copyCOPY