var matrix = [[1]]; var matrix_copy = matrix.map(function ( x ){ return Object.create( x ); }); matrix_copy[0][0] = 2; alert( matrix[0][0], matrix_copy[0][0] );