Answer the question
In order to leave comments, you need to log in
How to filter objects in an array by a word in a key string?
Hello. There is an array with objects. How to filter (remove) unnecessary objects using .filter if the status value contains the word "maybe"? Thank you!
[
{ city: "Moscow",
number: 123,
status: "maybe ok"
} ,
{ city: "Moscow",
number: 123,
status: "ok"
},
{ city: "Moscow",
number: 123,
status: "maybe"
},
]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question