How to add property to javascript object array

March 19, 2020

I need to add a property to the js object array. This is how you can do it

this.products.forEach(function (element) {
  element.isActive = "false";
});

I am using forEach of the array