@tempots/std
isJSONPrimitive() function
Checks if the value is a JSON primitive.
Signature:
isJSONPrimitive: (value: JSONValue) => value is JSONPrimitive
Parameters
Parameter |
Type |
Description |
---|---|---|
value |
The value to check. |
Returns: value is JSONPrimitive
true
if the value is a JSON primitive; otherwise, false
.