Skip to content

Commit

Permalink
fix: allow setting timeout to 0 to disable it
Browse files Browse the repository at this point in the history
closes #443
  • Loading branch information
panva committed Dec 20, 2021
1 parent 5abf728 commit 32b28b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helpers/pick.js
Original file line number Diff line number Diff line change
@@ -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];
}
}
Expand Down

0 comments on commit 32b28b5

Please sign in to comment.