Classify
classify
Deprecated
Directly switch on the JSON object instead
RESCRIPT
let classify: 'a => tReturns the JSON type of any value.
Examples
RESCRIPTJSON.Classify.classify("hello world")
// String("hello world")
JSON.Classify.classify(42)
// Number(42)
t
RESCRIPT
type t =
| Bool(bool)
| Null
| String(string)
| Number(float)
| Object(dict<t>)
| Array(array<t>)A type representing a JavaScript type.