🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## nthArg + [link](./nthArg "Link to this entry.") + [source](https://github.com/lodash/lodash/blob/4.5.0正式版/lodash.src.js#L13549 "View in source.") + [npm](https://www.npmjs.com/package/lodash.ntharg "See the npm package.") ``` _.nthArg([n=0]) ``` 创建一个返回第 N 个参数的函数。 ### 参数 1. [n=0] (number) 要返回参数的索引 ### 返回值 (Function) 返回新的函数 ### 示例 ``` var func = _.nthArg(1); func('a', 'b', 'c'); // => 'b' ```