If I have a TypeScript Array of
things: Things[]
export type Party = {
id: string;
name: string;
};
export type Things = {
party: Party;
id: number;
...more stuff
};
how can I check if the things array has a Party with a certain name?
Something like
included = things.includes(party.name.includes("Bob"))
or included = things.some(party.name("Bob"))