Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let that = this
- let array = this.$store.state.shops.productCarts.productCartItems.data
- let result = array.filter(function (productCartItem) {
- if (productCartItem.id === that.id) {
- console.log('test' + array.indexOf(productCartItem))
- return array.indexOf(productCartItem)
- }
- })
- array.splice(result, 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement