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.
2 parents a6a3288 + be92311 commit b5d8ad6Copy full SHA for b5d8ad6
src/utils/JsonUtils.ts
@@ -7,7 +7,9 @@ export function getDataAsFormattedJson(object: any) {
7
}
8
9
export function getDataType(object: any) {
10
- if (typeof object === 'object') {
+ if (object === null) {
11
+ return 'null';
12
+ } else if (typeof object === 'object') {
13
return Array.isArray(object) ? 'array' : 'object';
14
} else if (
15
object === 'true' ||
0 commit comments