hope all of you are OK
I have the following problem, I have a complex array, with unique fields and with nested arrays fields, for example something like this:
export interface myArray: [
name: string;
position: number;
weight: number;
subArray: myArray2;
];
export interface myArray2: [
other: string;
other2: string;
otherSubArray: myArray3;
];
export interface myArray3: [
other3: number;
other4: string;
]
And I don't know if it's possible to search by a value, but comparing all the fields (automatically).
Do you know if there's a function or similar that does a filter?
I mean something like:
applyFilter(myArray, 'John');
And this method search for the value 'John' in all the fields.
psd: I am using Angular 9, so basically this method will be using Typescript.
Thanks in advance, and if you need extra info feel free to ask