I work on the front-end part of Zero RRD framework again. It was a very basic interface and the usability wasn't, well isn't that good.
The new stuff is mostly JavaScript and I needed to check if a variable is an array or not. I found the snippet at bram.us, but it isn't fully working for me.
The problem is with variables that are null in that case you'll run into an error. The slightly improved version takes that into account.
function isArray(obj) { if (obj == null) return false; return obj.constructor == Array; }
Pingback
[...] Javascript isArray() : Check if an element/object is an Array 16 Apr 2009. Free DNS EveryDNS.net and Bind 9 setup. 04/05/2010 - 07:19. Updated Debian Lenny eAccelerator packages again (AMD64). 3 weeks 6 hours ago; Pingback. I work on the front-end part of Zero RRD framework again. Javascript isArray() : Check if an element/object is an Array [...]
Pingback
[...] Javascript isArray() : Check if an element/object is an Array 16 Apr 2009. Free DNS EveryDNS.net and Bind 9 setup. 04/05/2010 - 07:19. Updated Debian Lenny eAccelerator packages again (AMD64). 3 weeks 6 hours ago; Pingback. I work on the front-end part of Zero RRD framework again. Javascript isArray() : Check if an element/object is an Array [...]
...
The constructor property of the Array object can be overwritten.
better:
not entirely sure here but
not entirely sure here but why is....
not used?
btw the captcha's are incredibly noisy - difficult to decipher