My JavaScript object array contains the following attributes:
[
{
active: true
conditionText: "Really try not to die. We cannot afford to lose people"
conditionType: "CONDITION"
id: 12
identifier: "A1"
superseded: false
themeNames: "Star Wars"
type here
},
{
active: true
conditionText: "Really try not to die. We cannot afford to lose people"
conditionType: "CONDITION"
id: 12
identifier: "A1"
superseded: false
themeNames: "Star Wars"
type here
}
]
I am looking to extract only three attributes from this array (active, condtionText, id) and create a new array.
I attempted using the filter method but did not achieve the desired result. Any assistance on this matter would be greatly appreciated.