woocommerce/plugins/woocommerce-blocks/assets/js/data/query-state/utils.js

4 lines
136 B
JavaScript

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