I am trying to check if the value specified in the callback is JSON.stringify(obj, callback)really undefined or not. The problem is when the value of the array is not yet defined.
var a = new Array(3);
a[0] = true;
a[2] = undefined;
a.length;
a.hasOwnProperty(0);
a.hasOwnProperty(1);
a.hasOwnProperty(2);
a.hasOwnProperty(3);
(a[1] === a[2])
Any ideas to determine if a position has been [1]determined? Since the array has 3 elements for the JSON.stringify algorithm.
source
share