This Gist was automatically created by Carbide, a free online programming environment.
Last active
February 4, 2019 22:28
-
-
Save carbide-public/f71f466d46a6bc3b524209eb3243d199 to your computer and use it in GitHub Desktop.
untitled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pick from 'lodash/pick'; | |
const foo = { | |
a: 'a', | |
b: 'b' | |
}; | |
const bar = pick(foo, ['a', 'b', 'c']) | |
const barString = JSON.stringify(bar); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment