UNPKG

@bitty/nullish

Version:

Nullish helper functions and types for TypeScript.

22 lines (17 loc) 729 B
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.isNullish = {})); })(this, (function (exports) { 'use strict'; /** * Check if value is nullish (`void`, `null` or `undefined`). * @param {*} value - Value that will be checked. * @returns {Boolean} */ function isNullish(value) { return value == null; } exports.default = isNullish; Object.defineProperty(exports, '__esModule', { value: true }); })); //# sourceMappingURL=main.umd.js.map