javascript - Remove property for all objects in array - Stack Overflow

PHOTO EMBED

Mon Nov 01 2021 18:20:16 GMT+0000 (UTC)

Saved by @arielvol #javascript

const newArray = array.map(({dropAttr1, dropAttr2, ...keepAttrs}) => keepAttrs)
content_copyCOPY

https://stackoverflow.com/questions/18133635/remove-property-for-all-objects-in-array