mirror of
https://github.com/xlorepdarkhelm/numinar-coding-project.git
synced 2026-09-06 07:38:25 -04:00
7 lines
258 B
JavaScript
7 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');
|
|
};
|