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 ];
};