TypeScript: remove an element from list

Bellow you will found an elegant way to remove an element from a list in TypeScript:

 this.myArray = this.myArray.filter(obj => obj.id !== id);