mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 02:47:50 +00:00
Bump to v4.14.0.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
define(['./_baseNth', './rest', './toInteger'], function(baseNth, rest, toInteger) {
|
||||
define(['./_baseNth', './_baseRest', './toInteger'], function(baseNth, baseRest, toInteger) {
|
||||
|
||||
/**
|
||||
* Creates a function that gets the argument at index `n`. If `n` is negative,
|
||||
@@ -22,7 +22,7 @@ define(['./_baseNth', './rest', './toInteger'], function(baseNth, rest, toIntege
|
||||
*/
|
||||
function nthArg(n) {
|
||||
n = toInteger(n);
|
||||
return rest(function(args) {
|
||||
return baseRest(function(args) {
|
||||
return baseNth(args, n);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user