1
0
Fork 0
mirror of synced 2024-09-18 10:20:11 +12:00
budibase/packages/frontend-core/node_modules/lodash/_baseUnary.js
2022-01-18 09:39:19 +00:00

14 lines
332 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);
};
}
module.exports = baseUnary;