isNullish.js 270 B

12345678910111213
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = isNullish;
  6. /**
  7. * Returns true if a value is null, undefined, or NaN.
  8. */
  9. function isNullish(value) {
  10. return value === null || value === undefined || value !== value;
  11. }