Travis build: 1431
This commit is contained in:
@ -7,7 +7,7 @@ Returns the remaining elements.
|
||||
|
||||
```js
|
||||
const dropRightWhile = (arr, func) => {
|
||||
while (arr.length > 0 && !func(arr[arr.length-1])) arr = arr.slice(0, -1);
|
||||
while (arr.length > 0 && !func(arr[arr.length - 1])) arr = arr.slice(0, -1);
|
||||
return arr;
|
||||
};
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user