Apply arrow function transform.

This commit is contained in:
John-David Dalton
2017-01-06 15:41:39 -08:00
parent d461c87979
commit 7167d7e09f
108 changed files with 172 additions and 271 deletions

View File

@@ -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;