1 var createWrap = require('./_createWrap');
3 /** Used to compose bitmasks for function metadata. */
7 * Creates a function that invokes `func` with arguments reversed.
13 * @param {Function} func The function to flip arguments for.
14 * @returns {Function} Returns the new flipped function.
17 * var flipped = _.flip(function() {
18 * return _.toArray(arguments);
21 * flipped('a', 'b', 'c', 'd');
22 * // => ['d', 'c', 'b', 'a']
25 return createWrap(func, FLIP_FLAG);
28 module.exports = flip;