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

Function enforceReturnValue

lib/test/angular/1.7.0/angular.js:4926–4934  ·  view source on GitHub ↗
(name, factory)

Source from the content-addressed store, hash-verified

4924 }
4925
4926 function enforceReturnValue(name, factory) {
4927 return /** @this */ function enforcedReturnValue() {
4928 var result = instanceInjector.invoke(factory, this);
4929 if (isUndefined(result)) {
4930 throw $injectorMinErr('undef', 'Provider \'{0}\' must return a value from $get factory method.', name);
4931 }
4932 return result;
4933 };
4934 }
4935
4936 function factory(name, factoryFn, enforce) {
4937 return provider(name, {

Callers 1

factoryFunction · 0.70

Calls 1

isUndefinedFunction · 0.70

Tested by

no test coverage detected