Personally I do not use lodash and I am not able to remove an element from the array using remove.
example:
seat = { x:1, y:2 };
selectedSeats = [{ x:1, y:1 }, { x:1, y:2 }];
_.remove(selectedSeats,function(s){
return s === seat;
})
I'v...
asked by
23.05.2018 / 18:28