DIR: /proc/1991111/root/usr/share/nodejs/lodash/ |
Current File : //proc/1991111/root/usr/share/nodejs/lodash/_baseUnary.js |
/** Detect free variable `globalThis` */ const freeGlobalThis = typeof globalThis == 'object' && globalThis !== null && globalThis.Object == Object && globalThis; /** * 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; |