Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function isBuiltIn(name, settings) {
const base = baseModule(name);
const extras = (settings && settings['import/core-modules']) || [];
return coreModules.indexOf(base) > -1 || extras.indexOf(base) > -1;
}