contract-query/frontend/node_modules/es-to-primitive/helpers/isPrimitive.js
2025-08-14 15:03:33 -05:00

6 lines
258 B
JavaScript

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