From 8d8b3c2194045671774c591491823a54aaeae1d2 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 12 Apr 2014 17:15:17 -0700 Subject: [PATCH] Inline `partitionInitializer`. --- lodash.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/lodash.js b/lodash.js index 94851f413..138bf6869 100644 --- a/lodash.js +++ b/lodash.js @@ -463,16 +463,6 @@ return typeof value.toString != 'function' && typeof (value + '') == 'string'; } - /** - * Used by `_.partition` to create partitioned arrays. - * - * @private - * @returns {Array} Returns the new array. - */ - function partitionInitializer() { - return [[], []]; - } - /** * A fallback implementation of `String#trim` to remove leading and trailing * whitespace or specified characters from `string`. @@ -4417,7 +4407,7 @@ */ var partition = createAggregator(function(result, value, key) { result[key ? 0 : 1].push(value); - }, partitionInitializer); + }, function() { return [[], []]; }); /** * Retrieves the value of a specified property from all elements in the collection.