4 ms·
Javascript is Unityped. In Haskell/ML, you would define the type of Javascript objects by doing something like this: data JSObj = Num Double |
by anon_d 8y ago
Javascript is Unityped. In Haskell/ML, you would define the type of Javascript objects by doing something like this:
data JSObj
= Num Double
| Str String
| Obj (Hashtable String JSObj)
| True
| False
| Nil
| Undefined