UNPKG

459 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = isNullish;
7/**
8 * Copyright (c) 2015-present, Facebook, Inc.
9 *
10 * This source code is licensed under the MIT license found in the
11 * LICENSE file in the root directory of this source tree.
12 *
13 *
14 */
15
16/**
17 * Returns true if a value is null, undefined, or NaN.
18 */
19function isNullish(value) {
20 return value === null || value === undefined || value !== value;
21}
\No newline at end of file