UNPKG

pragmatic-fp-ts

Version:

Opinionated functional programming library with easy use in mind

12 lines (11 loc) 328 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isPrimitive = void 0; const isPrimitive = (v) => typeof v === "number" || typeof v === "string" || typeof v === "symbol" || v === true || v === false || v === null || v === undefined; exports.isPrimitive = isPrimitive;