After making an AJAX call, I passed a collection of JSON objects. Among the datasets I received, some include the field C
while others do not. Whenever I try to execute the following code snippet, it causes the system to crash. I attempted using both undefined
and null
, but unfortunately, they also resulted in crashes.
if (myJsonObjects[i].C == undefined) {
// …
}