diff --git a/fp/_mapping.js b/fp/_mapping.js index cbbcd99df..8f5ddf2d0 100644 --- a/fp/_mapping.js +++ b/fp/_mapping.js @@ -167,7 +167,8 @@ exports.iterateeAry = { /** Used to map method names to iteratee rearg configs. */ exports.iterateeRearg = { - 'mapKeys': [1] + 'mapKeys': [1], + 'reduceRight': [1, 0] }; /** Used to map method names to rearg configs. */ diff --git a/test/test-fp.js b/test/test-fp.js index 312a3869d..46a4c87b1 100644 --- a/test/test-fp.js +++ b/test/test-fp.js @@ -1847,7 +1847,7 @@ args || (args = slice.call(arguments)); })(0)([1, 2, 3]); - assert.deepEqual(args, isReduce ? [0, 1] : [0, 3]); + assert.deepEqual(args, isReduce ? [0, 1] : [3, 0]); }); QUnit.test('`fp.' + methodName + '` should provide the correct `iteratee` arguments when iterating an object', function(assert) { @@ -1858,8 +1858,8 @@ isFIFO = _.keys(object)[0] == 'a'; var expected = isFIFO - ? (isReduce ? [0, 1] : [0, 2]) - : (isReduce ? [0, 2] : [0, 1]); + ? (isReduce ? [0, 1] : [2, 0]) + : (isReduce ? [0, 2] : [1, 0]); func(function() { args || (args = slice.call(arguments));