Snippet format update
To match the starter (for the migration)
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
### pullAtValue
|
||||
---
|
||||
title: pullAtValue
|
||||
tags: array,advanced
|
||||
---
|
||||
|
||||
Mutates the original array to filter out the values specified. Returns the removed elements.
|
||||
|
||||
@ -20,4 +23,4 @@ const pullAtValue = (arr, pullArr) => {
|
||||
```js
|
||||
let myArray = ['a', 'b', 'c', 'd'];
|
||||
let pulled = pullAtValue(myArray, ['b', 'd']); // myArray = [ 'a', 'c' ] , pulled = [ 'b', 'd' ]
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user