To determine if the target link contains an element with a null value, you will have to write your own function, since you have nothing to do for this. One simple approach:
function hasNull(target) {
for (var member in target) {
if (target[member] == null)
return true;
}
return false;
}
, , , target , false. :
var o = { a: 'a', b: false, c: null };
document.write('Contains null: ' + hasNull(o));
:
null: true
, false:
var o = { a: 'a', b: false, c: {} };
document.write('Contains null: ' + hasNull(o));