@f/is-action-type

1.0.0 • Public • Published

is-action-type

Build status Git tag NPM version Code style

Check if is standard action of specified type.

Installation

$ npm install @f/is-action-type

Usage

var isActionType = require('@f/is-action-type')

isActionType('foo', {type: 'foo', payload: 'bar'}) // => true

API

isActionType(type, action)

  • type - type of action
  • action - action to check type of

Returns: whether action is of type type

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @f/is-action-type

Weekly Downloads

11

Version

1.0.0

License

MIT

Last publish

Collaborators

  • f