Snippet format update
To match the starter (for the migration)
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
### dropRightWhile
|
||||
---
|
||||
title: dropRightWhile
|
||||
tags: array,function,intermediate
|
||||
---
|
||||
|
||||
Removes elements from the end of an array until the passed function returns `true`. Returns the remaining elements in the array.
|
||||
|
||||
@@ -15,4 +18,4 @@ const dropRightWhile = (arr, func) => {
|
||||
|
||||
```js
|
||||
dropRightWhile([1, 2, 3, 4], n => n < 3); // [1, 2]
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user