is-what
is-what copied to clipboard
add JSONObject type
type Primitive =
| bigint
| boolean
| null
| number
| string
| symbol
| undefined;
type JSONValue = Primitive | JSONObject | JSONArray;
interface JSONObject {
[key: string]: JSONValue;
}
interface JSONArray extends Array<JSONValue> { }
Would this be added to a isJSONObject() and friends collection of checking functions?