We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd20ee1 commit ab890f3Copy full SHA for ab890f3
packages/commons/src/typeUtils.ts
@@ -3,7 +3,9 @@
3
*
4
* @param value The value to check
5
*/
6
-const isRecord = (value: unknown): value is Record<string, unknown> => {
+const isRecord = (
7
+ value: unknown
8
+): value is Record<string | number, unknown> => {
9
return (
10
Object.prototype.toString.call(value) === '[object Object]' &&
11
!Object.is(value, null)
0 commit comments