MCPcopy
hub / github.com/angular-ui/ui-grid / ensure

Function ensure

lib/test/angular/1.8.0/angular.js:2251–2253  ·  view source on GitHub ↗
(obj, name, factory)

Source from the content-addressed store, hash-verified

2249 var ngMinErr = minErr('ng');
2250
2251 function ensure(obj, name, factory) {
2252 return obj[name] || (obj[name] = factory());
2253 }
2254
2255 var angular = ensure(window, 'angular', Object);
2256

Callers 1

setupModuleLoaderFunction · 0.70

Calls 1

factoryFunction · 0.70

Tested by

no test coverage detected