diff --git a/lib/helpers/pick.js b/lib/helpers/pick.js index 725bb6eb..bfcdfc3e 100644 --- a/lib/helpers/pick.js +++ b/lib/helpers/pick.js @@ -1,7 +1,7 @@ module.exports = function pick(object, ...paths) { const obj = {}; for (const path of paths) { - if (object[path]) { + if (object[path] !== undefined) { obj[path] = object[path]; } }