Y
Hacker News
new
|
ask
|
show
|
jobs
by
cs02rm0
4635 days ago
That would've been simpler, but I seemed to get away with typeof(i[p]) === "object" and typeof(i[p]) === 1*typeof(i[p]) to test if it was an int.
I dread to think what obscure code I've left behind.