nthArg
最后更新于:2022-04-02 00:08:39
## 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'
```
';