import Immutable from "immutable" ; param { OrderedMap < String return { Map < String function listBlocks ( plugins ) { return plugins . reverse ( ) . reduce ( ( result , plugin ) => { const blocks = plugin . getBlocks ( ) ; return result . merge ( blocks ) ; } , Immutable . Map ( ) ) ; } export default listBlocks ;