isPrimitive.js 136 B

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