Files
30-seconds-of-code/test/nthArg/nthArg.js
2018-01-23 20:11:51 +00:00

2 lines
75 B
JavaScript

const nthArg = n => (...args) => args.slice(n)[0];
module.exports = nthArg