how to splice a 2d array in javascript code example Example: js splice 2d array arr.splice((i,j), 1);