I am not so into TypeScript and arrow function and I am searching a smart solution to the following problem.
I have an array of objects like this:
private events = [
{id: 1, title: 'All Day Event', start: '2017-02-01'},
{id: 2, title: 'Long Event', start: '2017-02-07', end: '2017-02-10'},
{id: 3, title: 'Repeating Event', start: '2017-02-09T16:00:00'},
{id: 4, title: 'test', start: '2017-02-20T07:00:00'},
];
I have to write a method of my class that take the value of the id field and remove this element from the events array.
What could be a smart way to achieve this task?