How to add property to Javascript object array

Last Updated: August 3, 2021

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