0๐
โ
parts.splice(parts.findIndex(part => part.id === change.doc.id), 1);
I got the splice
in there while still keeping as 1 line, so m happy! ๐ค
Source:stackexchange.com