Files
30-seconds-of-code/test/nthArg/nthArg.js
2018-08-02 13:49:33 +03:00

3 lines
76 B
JavaScript

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