Skip to content

Commit

Permalink
Fix R.nth doc
Browse files Browse the repository at this point in the history
  • Loading branch information
fobos committed Apr 8, 2016
1 parent 43281ad commit 2640865
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nth.js
Expand Up @@ -22,8 +22,8 @@ var _isString = require('./internal/_isString');
* R.nth(-1, list); //=> 'quux'
* R.nth(-99, list); //=> undefined
*
* R.nth('abc', 2); //=> 'c'
* R.nth('abc', 3); //=> ''
* R.nth(2, 'abc'); //=> 'c'
* R.nth(3, 'abc'); //=> ''
*/
module.exports = _curry2(function nth(offset, list) {
var idx = offset < 0 ? list.length + offset : offset;
Expand Down

0 comments on commit 2640865

Please sign in to comment.