4 lines
136 B
JavaScript
4 lines
136 B
JavaScript
export const getStateForContext = ( state, context ) => {
|
|
return typeof state[ context ] === 'undefined' ? null : state[ context ];
|
|
};
|