Permalink
Cannot retrieve contributors at this time
28 lines (25 sloc)
636 Bytes
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
codeql-action/node_modules/lodash/flip.js
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var createWrap = require('./_createWrap'); | |
/** Used to compose bitmasks for function metadata. */ | |
var WRAP_FLIP_FLAG = 512; | |
/** | |
* Creates a function that invokes `func` with arguments reversed. | |
* | |
* @static | |
* @memberOf _ | |
* @since 4.0.0 | |
* @category Function | |
* @param {Function} func The function to flip arguments for. | |
* @returns {Function} Returns the new flipped function. | |
* @example | |
* | |
* var flipped = _.flip(function() { | |
* return _.toArray(arguments); | |
* }); | |
* | |
* flipped('a', 'b', 'c', 'd'); | |
* // => ['d', 'c', 'b', 'a'] | |
*/ | |
function flip(func) { | |
return createWrap(func, WRAP_FLIP_FLAG); | |
} | |
module.exports = flip; |