array splice not working with multidimensional array javascript code example Example: js splice 2d array arr.splice((i,j), 1);