UNPKG

bonsai-analyzer

Version:
14 lines (12 loc) 272 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = getModulesById; function getModulesById(modules) { const modulesById = {}; modules.forEach(module => { modulesById[module.id] = module; }); return modulesById; }