You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varisCallable;/* inlined from https://npmjs.com/is-callable */varfnToStr=Function.prototype.toString,tryFunctionObject=functiontryFunctionObject(value){try{fnToStr.call(value);returntrue;}catch(e){returnfalse;}},fnClass='[object Function]',genClass='[object GeneratorFunction]';isCallable=functionisCallable(value){if(typeofvalue!=='function'){returnfalse;}if(hasToStringTag){returntryFunctionObject(value);}varstrClass=to_string.call(value);returnstrClass===fnClass||strClass===genClass;};
71
+
varisCallable;/* inlined from https://npmjs.com/is-callable */varfnToStr=Function.prototype.toString,constructorRegex=/^\s*class/,isES6ClassFn=functionisES6ClassFn(value){try{varfnStr=fnToStr.call(value);varsingleStripped=fnStr.replace(/\/\/.*\n/g,'');varmultiStripped=singleStripped.replace(/\/\*[.\s\S]*\*\//g,'');varspaceStripped=multiStripped.replace(/\n/mg,' ').replace(/{2}/g,' ');returnconstructorRegex.test(spaceStripped);}catch(e){returnfalse;/* not a function */}},tryFunctionObject=functiontryFunctionObject(value){try{if(isES6ClassFn(value)){returnfalse;}fnToStr.call(value);returntrue;}catch(e){returnfalse;}},fnClass='[object Function]',genClass='[object GeneratorFunction]',isCallable=functionisCallable(value){if(!value){returnfalse;}if(typeofvalue!=='function'&&typeofvalue!=='object'){returnfalse;}if(hasToStringTag){returntryFunctionObject(value);}if(isES6ClassFn(value)){returnfalse;}varstrClass=to_string.call(value);returnstrClass===fnClass||strClass===genClass;};
72
+
72
73
varisRegex;/* inlined from https://npmjs.com/is-regex */varregexExec=RegExp.prototype.exec,tryRegexExec=functiontryRegexExec(value){try{regexExec.call(value);returntrue;}catch(e){returnfalse;}},regexClass='[object RegExp]';isRegex=functionisRegex(value){if(typeofvalue!=='object'){returnfalse;}returnhasToStringTag ? tryRegexExec(value) : to_string.call(value)===regexClass;};
73
74
varisString;/* inlined from https://npmjs.com/is-string */varstrValue=String.prototype.valueOf,tryStringObject=functiontryStringObject(value){try{strValue.call(value);returntrue;}catch(e){returnfalse;}},stringClass='[object String]';isString=functionisString(value){if(typeofvalue==='string'){returntrue;}if(typeofvalue!=='object'){returnfalse;}returnhasToStringTag ? tryStringObject(value) : to_string.call(value)===stringClass;};
0 commit comments