Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_populateCapabilities(applicationCapabilities) {
const capabilities = {};
for (const capability of applicationCapabilities) {
capabilities[capability] = new common.Capability();
}
return new common.Capabilities({ capabilities: capabilities });
}
function populateCapabilities(applicationCapabilities) {
const capabilities = {};
for (const capability of applicationCapabilities) {
capabilities[capability] = new common.Capability();
}
return new common.Capabilities({ capabilities: capabilities });
}