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

4 lines
136 B
JavaScript
Raw Normal View History

2021-12-10 12:03:04 +00:00
export const getStateForContext = ( state, context ) => {
return typeof state[ context ] === 'undefined' ? null : state[ context ];
};