source: imaps-frontend/node_modules/lodash-es/_baseUnary.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 330 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
14export default baseUnary;
Note: See TracBrowser for help on using the repository browser.