fix naming

This commit is contained in:
Stefan Feješ
2017-12-17 15:41:31 +01:00
parent bebe9ec3c4
commit f559030eac
73 changed files with 18 additions and 18 deletions

View File

@ -3,7 +3,7 @@
Return `arr.slice(1)` if the array's `length` is more than `1`, otherwise return the whole array.
```js
const tail = arr => arr.length > 1 ? arr.slice(1) : arr;
const tailOfList = arr => arr.length > 1 ? arr.slice(1) : arr;
// tail([1,2,3]) -> [2,3]
// tail([1]) -> [1]
```