Skip to content

Commit

Permalink
simplify check undefinded (#11501)
Browse files Browse the repository at this point in the history
  • Loading branch information
Connormiha authored Nov 18, 2024
1 parent bb82c8f commit 49256c6
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 49256c6

Please sign in to comment.