Module Js.Types
Utility functions for runtime reflection on JS types
type symbolJs symbol type only available in ES6
type bigint_valJs bigint type only available in ES2020
type obj_valtype undefined_valThis type has only one value undefined
type null_valThis type has only one value null
type function_valtype _ t =| Undefined : undefined_val t| Null : null_val t| Boolean : bool t| Number : float t| String : string t| Function : function_val t| Object : obj_val t| Symbol : symbol t| BigInt : bigint_val tval test : 'a -> 'b t -> boolocaml
test "x" String = truetype tagged_t =| JSFalse| JSTrue| JSNull| JSUndefined| JSNumber of float| JSString of string| JSFunction of function_val| JSObject of obj_val| JSSymbol of symbol| JSBigInt of bigint_valval classify : 'a -> tagged_t