]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
simplify check undefinded (#11501)
authorMikhail <bodrovmiha@yandex.ru>
Mon, 18 Nov 2024 20:24:43 +0000 (22:24 +0200)
committerGitHub <noreply@github.com>
Mon, 18 Nov 2024 20:24:43 +0000 (15:24 -0500)
src/helpers/helpers.core.ts

index 723495c379947d5c17d70b14f148b8c1078ba904..7203a92c2ce50a63667b107e768b25476cd55487 100644 (file)
@@ -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;
 }
 
 /**