I have this:
nominees: Array<{ id: number, title: string, company: string, category: string }>;
I want to delete based on id, e.g. if the given id is 10, then I want to delete the element with the id of 10
I've been looking at splice, but honestly I'm really having a hard time. I'm quite new to Typescript
splicecode that isn't working?this.nominees.splice(id);. Apparently it don't be like that. I'm looking for the similar function in javaremoveIf(...). Thought it was similar