X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=node_modules%2Fgrunt-legacy-util%2Fnode_modules%2Flodash%2Fflip.js;fp=node_modules%2Fgrunt-legacy-util%2Fnode_modules%2Flodash%2Fflip.js;h=6e14896fa8395e221ce81f0d680656be13e401fb;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/node_modules/grunt-legacy-util/node_modules/lodash/flip.js b/node_modules/grunt-legacy-util/node_modules/lodash/flip.js new file mode 100644 index 000000000..6e14896fa --- /dev/null +++ b/node_modules/grunt-legacy-util/node_modules/lodash/flip.js @@ -0,0 +1,27 @@ +var createWrapper = require('./_createWrapper'); + +/** Used to compose bitmasks for wrapper metadata. */ +var FLIP_FLAG = 512; + +/** + * Creates a function that invokes `func` with arguments reversed. + * + * @static + * @memberOf _ + * @category Function + * @param {Function} func The function to flip arguments for. + * @returns {Function} Returns the new function. + * @example + * + * var flipped = _.flip(function() { + * return _.toArray(arguments); + * }); + * + * flipped('a', 'b', 'c', 'd'); + * // => ['d', 'c', 'b', 'a'] + */ +function flip(func) { + return createWrapper(func, FLIP_FLAG); +} + +module.exports = flip;