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