Is it possible to have an array filter another array from matching each character?
I have a set of logs and a filter that look like this:
logs = [{id:1, log: "log1"}], {id:2, log: "log2"}, {id:3, log: "fail"}
filter = ["log"]
it should return
[{id:1, log: "log1"}, {id:2, log: "log2"}]
If my filter were to be
filter = ["1", "fai"]
the output would be
[{id:1, log: "log1"}, {id:3, log: "fail"]