Files
30-seconds-of-code/test/nthArg/nthArg.js
2018-02-04 17:38:39 +02:00

2 lines
75 B
JavaScript

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