update snippets 32-47

This commit is contained in:
Stefan Feješ
2017-12-25 14:10:38 +01:00
committed by Agamemnon Zorbas
parent 3994e12792
commit 0001ff4dcb
16 changed files with 71 additions and 27 deletions

View File

@ -10,5 +10,8 @@ const dropElements = (arr, func) => {
while (arr.length > 0 && !func(arr[0])) arr = arr.slice(1);
return arr;
};
// dropElements([1, 2, 3, 4], n => n >= 3) -> [3,4]
```
```js
dropElements([1, 2, 3, 4], n => n >= 3) -> [3,4]
```