| Leo Repp | 58b9f11 | 2021-11-22 11:57:47 +0100 | [diff] [blame^] | 1 | /** |
| 2 | * The base implementation of `_.unary` without support for storing metadata. | ||||
| 3 | * | ||||
| 4 | * @private | ||||
| 5 | * @param {Function} func The function to cap arguments for. | ||||
| 6 | * @returns {Function} Returns the new capped function. | ||||
| 7 | */ | ||||
| 8 | function baseUnary(func) { | ||||
| 9 | return function(value) { | ||||
| 10 | return func(value); | ||||
| 11 | }; | ||||
| 12 | } | ||||
| 13 | |||||
| 14 | module.exports = baseUnary; | ||||