I'm trying to filter an array and remove the entries that contain certain properties. For example, my array looks like this:
const items = [{a: "apple", b: "banana", c: "coconut"}, {a: "apple"}, {b: "banana, c: "coconut"}];
And I want to filter out the items that have the properties b or c.
Right now I have:
items.filter(item => "b" in item || "c" in item);
but I feel like there is a better way to do this, and set it up so a lot more properties could easily be added in the future.