MCPcopy
hub / github.com/lodash/lodash / baseUnary

Function baseUnary

lodash.js:1031–1035  ·  view source on GitHub ↗

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

(func)

Source from the content-addressed store, hash-verified

1029 * @returns {Function} Returns the new capped function.
1030 */
1031 function baseUnary(func) {
1032 return function(value) {
1033 return func(value);
1034 };
1035 }
1036
1037 /**
1038 * The base implementation of `_.values` and `_.valuesIn` which creates an

Callers 6

baseDifferenceFunction · 0.85
baseIntersectionFunction · 0.85
baseOrderByFunction · 0.85
basePullAllFunction · 0.85
createOverFunction · 0.85
lodash.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected