-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
97d0992
commit 47cf3a5
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
id: utils | ||
title: Additional Utilities | ||
hide_title: true | ||
description: 'API > utils: Additional utility functions' | ||
--- | ||
|
||
| ||
|
||
# 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 string `type` field). | ||
|
||
This also serves as a TypeScript type predicate, which will narrow the TS type to `Action<string>`. | ||
|
||
## `isPlainObject` | ||
|
||
Returns true if the value appears to be a plain JS object. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters