Array filter arrow function in Typescript
onEmployeeDelete(employee: Employee): void { ... this.employeesFullList = this.employeesFullList.filter(emp => emp.id !== employee.id); }
This instead of finding index first then splice with it. WOHO!
onEmployeeDelete(employee: Employee): void { ... this.employeesFullList = this.employeesFullList.filter(emp => emp.id !== employee.id); }
This instead of finding index first then splice with it. WOHO!