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

Function ensure

lib/test/angular/1.6.7/angular.js:2223–2225  ·  view source on GitHub ↗
(obj, name, factory)

Source from the content-addressed store, hash-verified

2221 var ngMinErr = minErr('ng');
2222
2223 function ensure(obj, name, factory) {
2224 return obj[name] || (obj[name] = factory());
2225 }
2226
2227 var angular = ensure(window, 'angular', Object);
2228

Callers 1

setupModuleLoaderFunction · 0.70

Calls 1

factoryFunction · 0.70

Tested by

no test coverage detected