soot-shared
Version:
2 lines (1 loc) • 1.13 kB
JavaScript
!(function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(n.SootShared={})})(this,(function(n){"use strict";function r(n){return null===n}function t(n){return!0===n}function e(n){return void 0===n}var o="Error",i=Array.isArray;n.NO_OP="$NO_OP",n.ERROR_MSG=o,n.isArray=i,n.isStatefulComponent=function(n){return!e(n.prototype)&&!e(n.prototype.render)},n.isStringOrNumber=function(n){var r=typeof n;return"string"===r||"number"===r},n.isNullOrUndef=function(n){return e(n)||r(n)},n.isInvalid=function(n){return r(n)||!1===n||t(n)||e(n)},n.isFunction=function(n){return"function"==typeof n},n.isString=function(n){return"string"==typeof n},n.isNumber=function(n){return"number"==typeof n},n.isNull=r,n.isTrue=t,n.isUndefined=e,n.isObject=function(n){return"object"==typeof n},n.throwError=function(n){throw n||(n=o),new Error("Soot Error: "+n)},n.warning=function(n){console.warn(n)},n.combineFrom=function(n,r){var t={};if(n)for(var e in n)t[e]=n[e];if(r)for(var e in r)t[e]=r[e];return t},Object.defineProperty(n,"__esModule",{value:!0})}));