mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Bump to v3.7.0.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
var baseIndexOf = require('../internal/baseIndexOf'),
|
||||
getLength = require('../internal/getLength'),
|
||||
isArray = require('../lang/isArray'),
|
||||
isIterateeCall = require('../internal/isIterateeCall'),
|
||||
isLength = require('../internal/isLength'),
|
||||
@@ -41,7 +42,7 @@ var nativeMax = Math.max;
|
||||
* // => true
|
||||
*/
|
||||
function includes(collection, target, fromIndex, guard) {
|
||||
var length = collection ? collection.length : 0;
|
||||
var length = collection ? getLength(collection) : 0;
|
||||
if (!isLength(length)) {
|
||||
collection = values(collection);
|
||||
length = collection.length;
|
||||
|
||||
Reference in New Issue
Block a user