@wordpress/core-data
Version:
Access to and manipulation of core WordPress entities.
13 lines (12 loc) • 377 B
JavaScript
// packages/core-data/src/utils/if-matching-action.js
var ifMatchingAction = (isMatch) => (reducer) => (state, action) => {
if (state === void 0 || isMatch(action)) {
return reducer(state, action);
}
return state;
};
var if_matching_action_default = ifMatchingAction;
export {
if_matching_action_default as default
};
//# sourceMappingURL=if-matching-action.js.map