export const isFunction = ( i ) : boolean => typeof i === 'function' ; export const isObject = ( i ) : boolean => typeof i === 'object' ; export const isReducerDefinition = ( i ) => i . generate && ( typeof i . generate === 'function' ) ; export const getActionType = ( namespacing , key ? ) : string => { const namespace = namespacing . join ( '/' ) ; if ( key ) { return `${ namespace }/${ key }` ; } else { return namespace ; } } ;