isPrimitive | @lumino (original) (raw)
Function isPrimitive
- isPrimitive(value): value is JSONPrimitive
- Test whether a JSON value is a primitive.
Parameters
- value: ReadonlyPartialJSONValue
The JSON value of interest.
Returns value is JSONPrimitive
true
if the value is a primitive,false
otherwise.