nl_tokens: Given an object of { module : dependenciesArray } it filters out modules that contain the world docs / and that are not components ( i . e . they don t start with components / ) . It also removes the components / prefix from the modules name .
pl_tokens: function reduceComponentsUsageStats ( modulesWithDependences ) { return <mask> . keys ( modulesWithDependences ) . filter ( moduleName => moduleName . indexOf ( 'components/' ) === 0 && moduleName . indexOf ( '/docs' ) === - 1 ) . reduce ( ( target , moduleName ) => { const name = moduleName . replace ( 'components/' , '' ) ; target [ name ] = modulesWithDependences [ moduleName ] ; return target ; } , { } ) ; }