mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Apply arrow function transform.
This commit is contained in:
6
unzip.js
6
unzip.js
@@ -31,15 +31,13 @@ function unzip(array) {
|
||||
return [];
|
||||
}
|
||||
var length = 0;
|
||||
array = arrayFilter(array, function(group) {
|
||||
array = arrayFilter(array, group => {
|
||||
if (isArrayLikeObject(group)) {
|
||||
length = nativeMax(group.length, length);
|
||||
return true;
|
||||
}
|
||||
});
|
||||
return baseTimes(length, function(index) {
|
||||
return arrayMap(array, baseProperty(index));
|
||||
});
|
||||
return baseTimes(length, index => arrayMap(array, baseProperty(index)));
|
||||
}
|
||||
|
||||
export default unzip;
|
||||
|
||||
Reference in New Issue
Block a user