I have an array of objects I generated from a JSON response.
The content of said array is structured like this:
const array = [
{title: "user generated title", message: "random user generated text", status: "Active/Inactive"},
{200 + more objects with the exact same key/values as the first},
...,
...
]
I want to make a new array with the exact same objects minus specific key/value pairs.
I.e., to make the exact same array with out say all message: "user message" key/value pairs. (There are multiple key/value pairs I want to remove from the objects in the array though.)
so it would be like
const array = [
{title: "user generated title", status: "Active/Inactive"},
{200 + objects just like the first without the message: "message text"},
...,
...
]