reports/frontend/node_modules/es-to-primitive/helpers/isPrimitive.js
jtricerolph 1c411e402e Add settings page for managing forecasting API key and URL via UI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-20 14:37:36 +00:00

9 lines
320 B
JavaScript

'use strict';
/** @import { primitive } from '../' */
/** @import { primitiveES5 } from '../es5' */
/** @type {<T extends primitive | primitiveES5>(value: unknown) => value is T} */
module.exports = function isPrimitive(value) {
return value === null || (typeof value !== 'function' && typeof value !== 'object');
};