This commit is contained in:
szabomarton committed 2025-01-28 11:38:27 +01:00
1 parent 9c5ca86086
commit 7f4a15b9c3
36841 files changed
+4032468 -1

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
'use strict';
/** @type {(value: unknown) => value is null | undefined | string | symbol | number | boolean | bigint} */
module.exports = function isPrimitive(value) {
return value === null || (typeof value !== 'function' && typeof value !== 'object');
};