glam/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.js
2025-12-21 00:01:54 +01:00

14 lines
330 B
JavaScript

/**
* The base implementation of `_.unary` without support for storing metadata.
*
* @private
* @param {Function} func The function to cap arguments for.
* @returns {Function} Returns the new capped function.
*/
function baseUnary(func) {
return function(value) {
return func(value);
};
}
export default baseUnary;