Files
lcbp3.np-dms.work/frontend/node_modules/es-to-primitive/helpers/isPrimitive.js
2025-09-21 20:29:15 +07:00

7 lines
258 B
JavaScript
Executable File

'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');
};