Skip to content

Commit

Permalink
fix: do not return null for all falsy values (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sekhmet authored Sep 26, 2023
1 parent 27a74fa commit 1dfc562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/orm/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class Model {
}

get(key: string): any {
return this.values.get(key) || null;
return this.values.get(key) ?? null;
}

set(key: string, value: any) {
Expand Down

0 comments on commit 1dfc562

Please sign in to comment.