UNPKG

decentralized-internet

Version:

An NPM library of programs to create decentralized web and distributed computing projects

1 lines 261 B
import fixSubtotal from"./../lib/fix-subtotal";export default({data:t,save:e},i,[l,a=!0])=>{for(let m=0;m<t.items.length;m++){const o=t.items[m];if(o._id===l)return t.items.splice(m,1),fixSubtotal(t),i.emit("removeItem",{data:t,item:o}),a&&e(!1),o}return null};