source: trip-planner-front/node_modules/lodash/_baseUnary.js@ 6fe77af

Last change on this file since 6fe77af was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 332 bytes
Line 
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 */
8function baseUnary(func) {
9 return function(value) {
10 return func(value);
11 };
12}
13
14module.exports = baseUnary;
Note: See TracBrowser for help on using the repository browser.