import { forIn } from 'lodash' ; import { Actions , Models , Reducers , Selectors } from './storage' ; export const clearAllReducers = ( ) => { forIn ( Reducers , ( _ , key ) => { delete Reducers [ key ] ; } ) ; forIn ( Models , ( _ , key ) => { delete Models [ key ] ; } ) ; forIn ( Selectors , ( _ , key ) => { delete Selectors [ key ] ; } ) ; forIn ( Actions , ( _ , key ) => { delete Actions [ key ] ; } ) ; } ;