@codewell/action-type-utils
1.0.0 • Public • Published
@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'
Readme
Keywords
nonePackage Sidebar
Install
npm i @codewell/action-type-utils
Weekly Downloads