I need to create a pipe that filters out an array of objects based on whether the indexof methods shows that the various strings within the object are similar.
So for example if we have the array
[{name: "john",
age: "17"},
{ name: "rob",
age: "20"}
]
and I have the filter object
{name: "jo",
age: "1" }
it will return the object {name: "john", age: "17"}.
Note: The numbers are purposefully made as strings.
How would I go about making a pipe that does this?