How can we set empty strings inside an array to null in JavaScript?
My array:
var myarray = [["01.01.2013","a"],["01.02.2013","b"],["01.03.2013",""]]
I need to replace the second value in the third element to null.
My attempt was to check whether a string is empty and then set it to null but that results in "null" and not null.
"null"result from that since an Array doesn't have a.replace()method.