I have an array that I\'ve created in TypeScript and it has a property that I use as a key. If I have that key, how can I remove an item from it?
If array is type of objects, then the simplest way is
let foo_object // Item to remove this.foo_objects = this.foo_objects.filter(obj => obj !== foo_object);