Skip to content

Instantly share code, notes, and snippets.

@carbide-public
Last active February 4, 2019 22:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carbide-public/f71f466d46a6bc3b524209eb3243d199 to your computer and use it in GitHub Desktop.
Save carbide-public/f71f466d46a6bc3b524209eb3243d199 to your computer and use it in GitHub Desktop.
untitled
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