We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8cca33 commit dca4832Copy full SHA for dca4832
src/DataTypeDetection.ts
@@ -23,7 +23,7 @@ export const isArray = (data: any): data is Array<any> => {
23
};
24
25
export const isObject = (data: any): data is object => {
26
- return data instanceof Object && data !== null;
+ return typeof data === "object" && data !== null;
27
28
29
export const isNull = (data: any): data is null => {
0 commit comments