Skip to content

Commit 25ae3a0

Browse files
committed
chore: use smart eqeqeq check
1 parent 1c7d7f0 commit 25ae3a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/faker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export class Faker {
114114
Object.defineProperty(this.definitions[moduleName], entryName, {
115115
get: () => {
116116
const localizedModule = this.locales[this.locale][moduleName];
117-
if (typeof localizedModule?.[entryName] === 'undefined') {
117+
if (localizedModule?.[entryName] == null) {
118118
// certain localization sets contain less data then others.
119119
// in the case of a missing definition, use the default localeFallback
120120
// to substitute the missing set data

0 commit comments

Comments
 (0)