mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Bump to v4.4.0.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import arrayMap from './_arrayMap';
|
||||
import baseCastArrayLikeObject from './_baseCastArrayLikeObject';
|
||||
import baseIntersection from './_baseIntersection';
|
||||
import rest from './rest';
|
||||
import toArrayLikeObject from './_toArrayLikeObject';
|
||||
|
||||
/**
|
||||
* Creates an array of unique values that are included in all given arrays
|
||||
@@ -19,7 +19,7 @@ import toArrayLikeObject from './_toArrayLikeObject';
|
||||
* // => [2]
|
||||
*/
|
||||
var intersection = rest(function(arrays) {
|
||||
var mapped = arrayMap(arrays, toArrayLikeObject);
|
||||
var mapped = arrayMap(arrays, baseCastArrayLikeObject);
|
||||
return (mapped.length && mapped[0] === arrays[0])
|
||||
? baseIntersection(mapped)
|
||||
: [];
|
||||
|
||||
Reference in New Issue
Block a user