javascript add array of object property code example
Example 1: map object and add new property javascript
Results.map(obj=> ({ ...obj, Active: 'false' }))
Example 2: javascript set property for each object in array of objects
let yourArray = [{id:3},{id:2},{id:4}]
yourArray.forEach((item, index) => {
item.id = index
})