isPrimitive.js 151 B

12345
  1. 'use strict';
  2. module.exports = function isPrimitive(value) {
  3. return value === null || (typeof value !== 'function' && typeof value !== 'object');
  4. };