blob: ce2443cd6929c97b67dca4f2db4fb4776c22a6d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
var a = ['p', 'q', 'r', 's', 't'];
var o = {p:1, q:2, r:3, s:4, t:5};
for (var i in o) {
delete o.p;
delete o.q;
delete o.r;
delete o.s;
delete o.t;
}
for (var i of a)
assertEq(o.hasOwnProperty(i), false);
|