mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Update doc examples to ES2015.
This commit is contained in:
4
flip.js
4
flip.js
@@ -12,9 +12,7 @@ const WRAP_FLIP_FLAG = 512;
|
||||
* @returns {Function} Returns the new flipped function.
|
||||
* @example
|
||||
*
|
||||
* var flipped = flip(function() {
|
||||
* return toArray(arguments);
|
||||
* });
|
||||
* const flipped = flip((...args) => args);
|
||||
*
|
||||
* flipped('a', 'b', 'c', 'd');
|
||||
* // => ['d', 'c', 'b', 'a']
|
||||
|
||||
Reference in New Issue
Block a user