Typeof has some really basic functionality:
typeof
in JavaScript only returns basic info
typeof
"Hello World" would return string
.
typeof
[1,2,3] would return object
I'm looking for a function that I can input like [1,"string", {property: "object"}]
and it would return
Array<number | string | object>
or something like that.