MCPcopy Create free account
hub / github.com/angular-ui/ui-router / isClass

Function isClass

test/angular/1.5/angular.js:4746–4755  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

4744 }
4745
4746 function isClass(func) {
4747 // IE 9-11 do not support classes and IE9 leaks with the code below.
4748 if (msie <= 11) {
4749 return false;
4750 }
4751 // Support: Edge 12-13 only
4752 // See: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/6156135/
4753 return typeof func === 'function'
4754 && /^(?:class\b|constructor\()/.test(stringifyFn(func));
4755 }
4756
4757 function invoke(fn, self, locals, serviceName) {
4758 if (typeof locals === 'string') {

Callers 1

invokeFunction · 0.70

Calls 1

stringifyFnFunction · 0.70

Tested by

no test coverage detected