Is there a type that functions like
type JavaScriptType = JSString String | JSNumber Float | JSUndefined | JSNull | JSBoolean Boolean | JSSymbol String | JSObject ??? | JSArray ???
but without putting a wrapper around each value?
I have really big data sets, JS arrays containing up to 1,000,000 values, typically string, number or boolean, but also objects, so ??? above should preferable handle the recursive case.
I would instead like the ELM-case statement use run-time typeof checks.
Is this already implemented, what is it called?