MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / isClass

Function isClass

lib/test/angular/1.6.7/angular.js:5068–5081  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

5066 }
5067
5068 function isClass(func) {
5069 // Support: IE 9-11 only
5070 // IE 9-11 do not support classes and IE9 leaks with the code below.
5071 if (msie || typeof func !== 'function') {
5072 return false;
5073 }
5074 var result = func.$$ngIsClass;
5075 if (!isBoolean(result)) {
5076 // Support: Edge 12-13 only
5077 // See: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/6156135/
5078 result = func.$$ngIsClass = /^(?:class\b|constructor\()/.test(stringifyFn(func));
5079 }
5080 return result;
5081 }
5082
5083 function invoke(fn, self, locals, serviceName) {
5084 if (typeof locals === 'string') {

Callers 1

invokeFunction · 0.70

Calls 2

isBooleanFunction · 0.70
stringifyFnFunction · 0.70

Tested by

no test coverage detected