Y
Hacker News
new
|
ask
|
show
|
jobs
by
hayksaakian
4642 days ago
typeof(x) === typeof(["something which is certainly", "an array"])
or am i missing something?
1 comments
wging
4642 days ago
> typeof ["a", "b"] "object"
Of course, since you're told you'll only get numbers, arrays, and strings, that is enough to solve the problem narrowly.
link