source: imaps-frontend/node_modules/es-to-primitive/helpers/isPrimitive.js@ 0c6b92a

main
Last change on this file since 0c6b92a was 0c6b92a, checked in by stefan toskovski <stefantoska84@…>, 5 weeks ago

Pred finalna verzija

  • 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.