Skip to content

Commit

Permalink
utils/pick should catch falsy values (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainLexington authored and PaulLeCam committed Dec 14, 2019
1 parent 43e2aaf commit 11b1df8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/pick.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

export default function pick(object: Object, keys: Array<string>): Object {
return keys.reduce((obj, key) => {
if (object[key]) {
if (typeof object[key] !== 'undefined') {
obj[key] = object[key]
}
return obj
Expand Down

0 comments on commit 11b1df8

Please sign in to comment.