D | delete.js | 30 function has(o, k) { return typeof o[k] !== 'undefined'; } function 59 assertTrue(has(o, 'x')); 60 assertTrue(has(o, 'y')); 62 assertFalse(has(o, 'x')); 63 assertTrue(has(o, 'y')); 65 assertFalse(has(o, 'x')); 66 assertFalse(has(o, 'y')); 78 assertFalse(has(o, String.fromCharCode(i)), "deleted (" + i + ")"); 79 assertTrue(has(o, String.fromCharCode(i+1)), "still here (" + i + ")"); 84 assertTrue(has(a, 0)); [all …]
|