Sha256: 0eb5681b004c2bccb0b5480924c589dda6702b3bb53eb384a0c22956312a3ae2

Contents?: true

Size: 382 Bytes

Versions: 274

Compression:

Stored size: 382 Bytes

Contents

/**
 * Creates a unary function that invokes `func` with its argument transformed.
 *
 * @private
 * @param {Function} func The function to wrap.
 * @param {Function} transform The argument transform.
 * @returns {Function} Returns the new function.
 */
function overArg(func, transform) {
  return function(arg) {
    return func(transform(arg));
  };
}

module.exports = overArg;

Version data entries

274 entries across 272 versions & 30 rubygems

Version Path
clapton-0.0.1 lib/clapton/javascripts/node_modules/lodash/_overArg.js
immosquare-cleaner-0.1.47 node_modules/lodash/_overArg.js
immosquare-cleaner-0.1.46 node_modules/lodash/_overArg.js
immosquare-cleaner-0.1.45 node_modules/lodash/_overArg.js
immosquare-cleaner-0.1.44 node_modules/lodash/_overArg.js
boring_generators-0.14.0 tmp/templates/app_template/node_modules/lodash/_overArg.js
immosquare-cleaner-0.1.43 node_modules/lodash/_overArg.js
immosquare-cleaner-0.1.42 node_modules/lodash/_overArg.js
immosquare-cleaner-0.1.41 node_modules/lodash/_overArg.js
immosquare-cleaner-0.1.40 node_modules/lodash/_overArg.js
sumomo-0.10.8 data/sumomo/api_modules/node_modules/lodash/_overArg.js
immosquare-cleaner-0.1.39 node_modules/lodash/_overArg.js
immosquare-cleaner-0.1.38 node_modules/lodash/_overArg.js
optimacms-0.1.61 spec/dummy/node_modules/lodash/_overArg.js
boring_generators-0.13.0 tmp/templates/app_template/node_modules/lodash/_overArg.js
immosquare-cleaner-0.1.32 node_modules/lodash/_overArg.js
immosquare-cleaner-0.1.31 node_modules/lodash/_overArg.js
immosquare-cleaner-0.1.30 node_modules/lodash/_overArg.js
immosquare-cleaner-0.1.29 node_modules/lodash/_overArg.js
immosquare-cleaner-0.1.28 node_modules/lodash/_overArg.js