From 4a8f6b83a94e486000687a9213b4717a156ceb0c Mon Sep 17 00:00:00 2001
From: Angelos Chalaris
Date: Mon, 18 Dec 2017 15:50:56 +0200
Subject: [PATCH] Build
---
README.md | 4 ++--
docs/index.html | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 5f279d99f..c4a6765d3 100644
--- a/README.md
+++ b/README.md
@@ -446,8 +446,8 @@ Omit the second argument, `n`, to get the first element of the array.
```js
const nthElement = (arr, n=0) => (n>0? arr.slice(n,n+1) : arr.slice(n))[0];
-// nth(['a','b','c'],1) -> 'b'
-// nth(['a','b','b']-2) -> 'a'
+// nthElement(['a','b','c'],1) -> 'b'
+// nthElement(['a','b','b'],-3) -> 'a'
```
[⬆ back to top](#table-of-contents)
diff --git a/docs/index.html b/docs/index.html
index fc801123a..7c2e08821 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -317,8 +317,8 @@ squareIt([1,2,3]) // { 1: 1, 2: 4, 3: 9 }
If the index is out of bounds, return [].
Omit the second argument, n, to get the first element of the array.
const nthElement = (arr, n=0) => (n>0? arr.slice(n,n+1) : arr.slice(n))[0];
-// nth(['a','b','c'],1) -> 'b'
-// nth(['a','b','b']-2) -> 'a'
+// nthElement(['a','b','c'],1) -> 'b'
+// nthElement(['a','b','b'],-3) -> 'a'
pick
Picks the key-value pairs corresponding to the given keys from an object.