7 lines
		
	
	
		
			258 B
		
	
	
	
		
			JavaScript
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			258 B
		
	
	
	
		
			JavaScript
		
	
	
		
			Executable File
		
	
	
	
	
| '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');
 | |
| };
 |