showing results for - "array findindex is not a function"
Salvatore
19 Aug 2018
1var f;
2var filteredElements = data.filter(function(item, index) { f = index; return item.id == removeId; });
3
4
5if (!filteredElements.length) {
6    return false;
7}
8
9data.splice(f, 1);
10