UNPKG

@wordpress/compose

Version:
16 lines (15 loc) 485 B
/** * Internal dependencies */ import { basePipe } from './pipe'; /** * Composes multiple higher-order components into a single higher-order component. Performs right-to-left function * composition, where each successive invocation is supplied the return value of the previous. * * This is inspired by `lodash`'s `flowRight` function. * * @see https://lodash.com/docs/4#flow-right */ const compose = basePipe(true); export default compose; //# sourceMappingURL=compose.js.map