Utility Functions
The Redux core exports additional utility functions for reuse.
isAction
Returns true if the parameter is a valid Redux action object (a plain object with a stringtype field).
This also serves as a TypeScript type predicate, which will narrow the TS type toAction<string>.
isPlainObject
Returns true if the value appears to be a plain JS object.