MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / overArg

Function overArg

code/redux/public/app.js:803–807  ·  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

801 * @returns {Function} Returns the new function.
802 */
803function overArg(func, transform) {
804 return function(arg) {
805 return func(transform(arg));
806 };
807}
808
809module.exports = overArg;
810

Callers 1

app.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected