Snippet format update
To match the starter (for the migration)
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
### pick
|
||||
---
|
||||
title: pick
|
||||
tags: object,array,intermediate
|
||||
---
|
||||
|
||||
Picks the key-value pairs corresponding to the given keys from an object.
|
||||
|
||||
@ -11,4 +14,4 @@ const pick = (obj, arr) =>
|
||||
|
||||
```js
|
||||
pick({ a: 1, b: '2', c: 3 }, ['a', 'c']); // { 'a': 1, 'c': 3 }
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user