Skip to content

Commit 2cbbf7b

Browse files
committed
Made more sense to the [direct] access
1 parent 0d2d9ad commit 2cbbf7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esm/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export default namespace => {
7575
proxy,
7676
release,
7777
typeOf: typeOfFor(typesOf),
78-
valueOf: value => (value[direct] || value.valueOf()),
78+
valueOf: value => (value[direct] ?? value.valueOf()),
7979
};
8080
for (const type of ownKeys(namespace)) {
8181
if (hasOwn(utils, type)) continue;

0 commit comments

Comments
 (0)