mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
removing somewhat silly isNumber check.
This commit is contained in:
@@ -72,7 +72,7 @@
|
|||||||
if (obj == null) return;
|
if (obj == null) return;
|
||||||
if (nativeForEach && obj.forEach === nativeForEach) {
|
if (nativeForEach && obj.forEach === nativeForEach) {
|
||||||
obj.forEach(iterator, context);
|
obj.forEach(iterator, context);
|
||||||
} else if (_.isNumber(obj.length)) {
|
} else if (obj.length) {
|
||||||
for (var i = 0, l = obj.length; i < l; i++) {
|
for (var i = 0, l = obj.length; i < l; i++) {
|
||||||
if (i in obj && iterator.call(context, obj[i], i, obj) === breaker) return;
|
if (i in obj && iterator.call(context, obj[i], i, obj) === breaker) return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user