javascript remove object from array by id using lodash

Solutions on MaxInterview for javascript remove object from array by id using lodash by the best coders in the world

showing results for - "javascript remove object from array by id using lodash"
Ricardo
05 Nov 2019
1//if you know the element is into the array for sure :: 
2data.splice(data.findIndex(el => el.id === ID_TO_REMOVE), 1);
3