UNPKG

@wordpress/compose

Version:
22 lines (20 loc) 616 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _pipe = require("./pipe"); /** * Internal dependencies */ /** * 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 = (0, _pipe.basePipe)(true); var _default = exports.default = compose; //# sourceMappingURL=compose.js.map