update snippets 32-47
This commit is contained in:
committed by
Agamemnon Zorbas
parent
3994e12792
commit
0001ff4dcb
@ -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]
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user