在浏览 underscore.js 库时,我遇到了
for (var i = 0, l = obj.length; i < l; i++) {
if (i in obj && iterator.call(context, obj[i], i, obj) === breaker) return;
}
// Establish the object that gets returned to break out of a loop iteration.
breaker = {};
为什么return
用在最后?检查什么i in obj
?