MCPcopy
hub / github.com/lodash/lodash / overArg

Function overArg

lodash.js:1224–1228  ·  view source on GitHub ↗

* 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.

(func, transform)

Source from the content-addressed store, hash-verified

1222 * @returns {Function} Returns the new function.
1223 */
1224 function overArg(func, transform) {
1225 return function(arg) {
1226 return func(transform(arg));
1227 };
1228 }
1229
1230 /**
1231 * Replaces all `placeholder` elements in `array` with an internal placeholder

Callers 1

lodash.jsFile · 0.70

Calls 1

transformFunction · 0.70

Tested by

no test coverage detected