  | |  | determining if an array is an array | determining if an array is an array 2004-03-09 - By Giles Roadnight
Back I've been looking through my Actionscript 2 dictionary but cannot find any way of discovering if an item is an array or not. I used to use an edited array prototype and used the property isArray.
I thought if typeof(arrayName) = object and arrayName.length isNumeric I could assume that it was an array. Is there anything else that could be an object with a length property (other than object created by me).
Are there any better ways of determining if an array is an array.
Thanks
Giles Roadnight http://giles.roadnight.name
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Supported by Fig Leaf Software =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Be sure to check the archives and the wiki: http://chattyfig.figleaf.com/ =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:106415 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe send a blank e-mail to: Normal Mode: flashcoders-unsubscribe@(protected) Digest Mode: flashcoders-digest-unsubscrive@(protected)
Earn $52 per hosting referral at Lunarpages.
|
|
 |