3
rated 0 times
[
5]
[
2]
/ answers: 1 / hits: 63505
/ 15 Years ago, mon, february 15, 2010, 12:00:00
So i have a function that needs to check if an argument is an object, but this fails because:
typeof [] // returns 'object'
This is a classic javascript gotcha, but i cant remember what to do to actually accept objects, but not arrays.
More From » types