UNPKG

util-ex

Version:

Browser-friendly enhanced util fully compatible with standard node.js

14 lines (13 loc) 398 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; exports.isPrimitive = isPrimitive; function isPrimitive(arg) { return arg === null || typeof arg === 'boolean' || typeof arg === 'number' || typeof arg === 'string' || typeof arg === 'symbol' || // ES6 symbol typeof arg === 'undefined'; } ; var _default = exports.default = isPrimitive;