UNPKG

432 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = invariant;
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 */
16function invariant(condition, message) {
17 /* istanbul ignore else */
18 if (!condition) {
19 throw new Error(message);
20 }
21}
\No newline at end of file