Files
30-seconds-of-code/test/nthArg/nthArg.js

2 lines
74 B
JavaScript

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