Possible Duplicate:
jslint error: Unexpected 'in'. Compare with undefined, or use the hasOwnProperty
Why jslint complains about this code and how should I fix it.
if ('children' in object) {
for (key in object.children) {
recurse(object.children[key], key);
}
}
Obviously recurse is defined.