mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Bump to v3.7.0.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
var isLength = require('./isLength'),
|
||||
var getLength = require('./getLength'),
|
||||
isLength = require('./isLength'),
|
||||
isObject = require('../lang/isObject'),
|
||||
values = require('../object/values');
|
||||
|
||||
@@ -13,7 +14,7 @@ function toIterable(value) {
|
||||
if (value == null) {
|
||||
return [];
|
||||
}
|
||||
if (!isLength(value.length)) {
|
||||
if (!isLength(getLength(value))) {
|
||||
return values(value);
|
||||
}
|
||||
return isObject(value) ? value : Object(value);
|
||||
|
||||
Reference in New Issue
Block a user