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