1.0.0 • Published 5 years ago
@codewell/action-type-utils v1.0.0
@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'
1.0.0
5 years ago