Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function parseString(config) {
config = ini.parseString(config.toString()).filter(block => block[0] === "*").map(block => block[1]);
config.unshift({});
config.unshift(defaultConfig);
return Object.assign.apply(Object, config);
}