UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

10 lines (6 loc) 245 B
'use strict'; Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); function isPrimitive(value) { return value == null || (typeof value !== 'object' && typeof value !== 'function'); } exports.isPrimitive = isPrimitive;