woocommerce/packages/woocommerce-blocks/assets/js/data/query-state/utils.js
2021-12-10 12:03:04 +00:00

4 lines
136 B
JavaScript

export const getStateForContext = ( state, context ) => {
return typeof state[ context ] === 'undefined' ? null : state[ context ];
};