From c32a6837e6d72ca3829549897ee8534ebb7c7b0c Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Wed, 9 Sep 2015 10:29:43 -0700 Subject: [PATCH] Update `_.flip` doc example and test to better show effect. --- lodash.js | 4 ++-- test/test.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lodash.js b/lodash.js index f97eefd63..958a401b4 100644 --- a/lodash.js +++ b/lodash.js @@ -7489,8 +7489,8 @@ * return _.toArray(arguments); * }); * - * flipped('a', 'b', 'c') - * // => ['c', 'b', 'a'] + * flipped('a', 'b', 'c', 'd'); + * // => ['d', 'c', 'b', 'a'] */ function flip(func) { return createWrapper(func, FLIP_FLAG); diff --git a/test/test.js b/test/test.js index 496e4a772..a9c052627 100644 --- a/test/test.js +++ b/test/test.js @@ -4674,7 +4674,7 @@ assert.expect(1); var flipped = _.flip(fn); - assert.deepEqual(flipped('a', 'b', 'c'), ['c', 'b', 'a']); + assert.deepEqual(flipped('a', 'b', 'c', 'd'), ['d', 'c', 'b', 'a']); }); }());