Skip to content

Function: isAction()

isAction(action): boolean

Defined in: types.ts:461

Checks if a value is a valid ActionStack action object.

This function determines if the provided value is a valid action object used in ActionStack for dispatching state changes.

Parameters

action

any

The value to check if it's a ActionStack action.

Returns

boolean

boolean - True if the value is a plain object with a string property named "type", false otherwise.

Released under the MIT License.