Is there a clever way of substituting / replacing a value in an array
eg.
var array = [[1,2,3,'null'],['null',2,3,4],['null','null','null','null'],[1,1,1,1]]
the answer should be which i will write to a spreadsheet
[[1,2,3,''],['',2,3,4],['','','',''],[1,1,1,1]]
The actual array is much bigger than this and spans 1000+ lines