Update _.flip doc example and test to better show effect.

This commit is contained in:
John-David Dalton
2015-09-09 10:29:43 -07:00
parent c604be31e0
commit c32a6837e6
2 changed files with 3 additions and 3 deletions

View File

@@ -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);

View File

@@ -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']);
});
}());