how to add key value pair to map in javascript code example
Example 1: map object and add new property javascript
Results.map(obj=> ({ ...obj, Active: 'false' }))
Example 2: add new key value pair to object javascript
const person = {
name: "Elon Musk"
}
person.age = 49;
console.log(person);
// {name: "Elon Musk", age: 49}