0 points

add property to each object in array javascript using ".map()" Code Example


dashboard

Tue Nov 10 2020 07:16:25 GMT+0000 (UTC)

Posted by @ali_alaraby #undefined

Results.map(obj=> ({ ...obj, Active: 'false' }))
content_copy Copy

https://www.codegrepper.com/code-examples/javascript/add+property+to+object+javascript+using+".map()"