@f/is-action
1.0.3 • Public • Published
is-action
![Code style](https://camo.githubusercontent.com/5903f590e5e92b5fb972d9ead1dbf26e33367b8f88dc390f0e0d9ae3a06cb471/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64652532307374796c652d7374616e646172642d627269676874677265656e2e7376673f7374796c653d666c6174)
Check if standard action.
Installation
$ npm install @f/is-action
Usage
var isAction = require('@f/is-action')
isAction({type: 'action', payload: 'foo'}) // => true
API
isAction(obj)
-
obj
- obj
to test if action
Returns: boolean indicating whether obj
is action
License
MIT
/@f/is-action/
//
Package Sidebar
Install
Weekly Downloads