import { Module } from 'module' ; export const NodeBuiltinModules = Module . builtinModules ; export function mapArrToVal ( val , arr ) { return arr . reduce ( ( p , c ) => ( { ... p , [ c ] : val } ) , { } ) ; }