From 120a6335b531400316a5756efe7a69cfca9e4f94 Mon Sep 17 00:00:00 2001 From: Klaus Sinani Date: Mon, 12 Nov 2018 22:42:53 +0200 Subject: [PATCH] Added `trd` module --- src/trd.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/trd.js diff --git a/src/trd.js b/src/trd.js new file mode 100644 index 0000000..0eb2965 --- /dev/null +++ b/src/trd.js @@ -0,0 +1,9 @@ +'use strict' +const curry = require('./curry') +const getNth = require('./get-nth') + +function trd(xs) { + return getNth(2, xs) +} + +module.exports = curry(trd)