Remove baseNth.

This commit is contained in:
John-David Dalton
2017-03-12 23:24:54 -07:00
parent c89637e4db
commit 2f281c68b0
3 changed files with 10 additions and 26 deletions

View File

@@ -1,5 +1,4 @@
import baseNth from './.internal/baseNth.js'
import toInteger from './toInteger.js'
import nth from './nth.js'
/**
* Creates a function that gets the argument at index `n`. If `n` is negative,
@@ -20,8 +19,7 @@ import toInteger from './toInteger.js'
* // => 'c'
*/
function nthArg(n) {
n = toInteger(n)
return (...args) => baseNth(args, n)
return (...args) => nth(args, n)
}
export default nthArg