Skip to content

Commit

Permalink
simplify check undefinded
Browse files Browse the repository at this point in the history
  • Loading branch information
Connormiha committed Sep 14, 2023
1 parent 6516b0a commit 00398f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/helpers.core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const uid = (() => {
* @since 2.7.0
*/
export function isNullOrUndef(value: unknown): value is null | undefined {
return value === null || typeof value === 'undefined';
return value === null || value === undefined;
}

/**
Expand Down

0 comments on commit 00398f5

Please sign in to comment.