@codewell/action-type-utils
v1.0.0
Published
## Installation ``` npm install @codewell/action-type-utils ```
Downloads
7
Readme
@codewell/action-type-utils
Installation
npm install @codewell/action-type-utils
Basic usage
import { getActionTypePrefix } from '@codewell/action-type-utils';
getActionTypePrefix('SET_STATE_PROPERTY');
// => 'SET'
import { getStatePropertyFromActionType } from '@codewell/action-type-utils';
getStatePropertyFromActionType('SOME_STATE_PROPERTY');
// => 'stateProperty'