Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (12 sloc) 216 Bytes
var data = {'a': 'b', 'c': 'd'};
function fn() {
var ret = '';
for (var name in data) {
if (data.hasOwnProperty(name)) {
ret += data[name];
}
}
return ret;
}
assertEqual(fn(), 'bd');
test(fn);