export const isTest = process && process . env . NODE_ENV === 'test' ; export const isDev = process && process . env . NODE_ENV === 'development' ; export const isProduction = process && process . env . NODE_ENV === 'production' ; export const isBrowser = process && process . title === 'browser' ; export const makeError = ( message ) : Error => Error ( `Redux Definitions\n\n${ message }` ) ; export const logWarning = ( message ) : void => { if ( ! isProduction ) { console . warn ( `Redux Definitions\n\n${ message }\n` ) ; } } ; export const log = ( message ) : void => { if ( ! isProduction ) { console . log ( `Redux Definitions\n\n${ message }\n` ) ; } } ;