UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

43 lines (37 loc) 1.13 kB
/** * DevExtreme (cjs/__internal/core/r1/runtime/inferno/mocked/shared.js) * Version: 25.1.3 * Build date: Wed Jun 25 2025 * * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ERROR_MSG = void 0; exports.isFunction = isFunction; exports.isInvalid = isInvalid; exports.isNull = isNull; exports.isNullOrUndef = isNullOrUndef; exports.throwError = throwError; const ERROR_MSG = exports.ERROR_MSG = "a runtime error occured! Use Inferno in development environment to find the error."; function isNullOrUndef(o) { return void 0 === o || null === o } function isInvalid(o) { return null === o || false === o || true === o || void 0 === o } function isFunction(o) { return "function" === typeof o } function isNull(o) { return null === o } function throwError(message) { if (!message) { message = ERROR_MSG } throw new Error(`Inferno Error: ${message}`) }