no message

This commit is contained in:
A1300399510
2024-07-22 11:40:40 +08:00
parent 1271774c22
commit 4256fe064b
554 changed files with 198 additions and 17190 deletions

View File

@@ -1,22 +0,0 @@
import ary from './ary.js';
/**
* Creates a function that accepts up to one argument, ignoring any
* additional arguments.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Function
* @param {Function} func The function to cap arguments for.
* @returns {Function} Returns the new capped function.
* @example
*
* _.map(['6', '8', '10'], _.unary(parseInt));
* // => [6, 8, 10]
*/
function unary(func) {
return ary(func, 1);
}
export default unary;