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.