UNPKG

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