1 var createWrapper = require('./internal/createWrapper');
3 /** Used to compose bitmasks for wrapper metadata. */
7 * Creates a function that invokes `func` with arguments reversed.
12 * @param {Function} func The function to flip arguments for.
13 * @returns {Function} Returns the new function.
16 * var flipped = _.flip(function() {
17 * return _.toArray(arguments);
20 * flipped('a', 'b', 'c', 'd');
21 * // => ['d', 'c', 'b', 'a']
24 return createWrapper(func, FLIP_FLAG);
27 module.exports = flip;