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

Function isClass

lib/test/angular/1.5.0/angular.js:4579–4588  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

4577 }
4578
4579 function isClass(func) {
4580 // IE 9-11 do not support classes and IE9 leaks with the code below.
4581 if (msie <= 11) {
4582 return false;
4583 }
4584 // Workaround for MS Edge.
4585 // Check https://connect.microsoft.com/IE/Feedback/Details/2211653
4586 return typeof func === 'function'
4587 && /^(?:class\s|constructor\()/.test(Function.prototype.toString.call(func));
4588 }
4589
4590 function invoke(fn, self, locals, serviceName) {
4591 if (typeof locals === 'string') {

Callers 1

invokeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected