Skip to content

Instantly share code, notes, and snippets.

@apaleslimghost
Last active May 17, 2020 15:23
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 apaleslimghost/5644d4cbfef4f95d4bee27c53ec99b51 to your computer and use it in GitHub Desktop.
Save apaleslimghost/5644d4cbfef4f95d4bee27c53ec99b51 to your computer and use it in GitHub Desktop.
const isPropValid = require('@emotion/is-prop-valid').default
const pickBy = require('lodash.pickby')
module.exports = props => pickBy(props, (_, key) => isPropValid(key))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment