UNPKG

es-abstract

Version:

ECMAScript spec abstract operations.

6 lines (4 loc) 151 B
'use strict'; module.exports = function isPrimitive(value) { return value === null || (typeof value !== 'function' && typeof value !== 'object'); };