source: frontend/node_modules/es-to-primitive/helpers/isPrimitive.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago

Fix frontend appearance

  • Property mode set to 100644
File size: 258 bytes
Line 
1'use strict';
2
3/** @type {(value: unknown) => value is null | undefined | string | symbol | number | boolean | bigint} */
4module.exports = function isPrimitive(value) {
5 return value === null || (typeof value !== 'function' && typeof value !== 'object');
6};
Note: See TracBrowser for help on using the repository browser.