MCPcopy Create free account
hub / github.com/totaljs/framework / can

Function can

index.js:4269–4275  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

4267 }
4268
4269 var can = function(type) {
4270 if (!types)
4271 return true;
4272 if (types.indexOf('no' + type) !== -1)
4273 return false;
4274 return isNo ? true : types.indexOf(type) !== -1;
4275 };
4276
4277 if (can('modules')) {
4278 operations.push(function(resume) {

Callers 1

index.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected