Skip to content

Commit 120a633

Browse files
committed
Added trd module
1 parent b0f4287 commit 120a633

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/trd.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use strict'
2+
const curry = require('./curry')
3+
const getNth = require('./get-nth')
4+
5+
function trd(xs) {
6+
return getNth(2, xs)
7+
}
8+
9+
module.exports = curry(trd)

0 commit comments

Comments
 (0)