Continue to use more ES2015.

This commit is contained in:
John-David Dalton
2017-01-03 23:07:06 -08:00
parent 1a1e462f80
commit 0e24641cb8
7 changed files with 21 additions and 21 deletions

View File

@@ -36,8 +36,7 @@ import createAggregator from './_createAggregator.js';
* _.partition(users, 'active');
* // => objects for [['fred'], ['barney', 'pebbles']]
*/
var partition = createAggregator(function(result, value, key) {
result[key ? 0 : 1].push(value);
}, function() { return [[], []]; });
const partition = createAggregator((result, value, key) =>
result[key ? 0 : 1].push(value), () => [[], []]);
export default partition;