flip

Function
since 4.0.0

Arguments

  • Function The function to flip arguments for.

Returns

Function the new flipped function.

Creates a function that invokes func with arguments reversed.

Example of Lodash _.flip

var flipped = _.flip(function() {
  return _.toArray(arguments);
});

flipped('a', 'b', 'c', 'd');
// => ['d', 'c', 'b', 'a']