In the following code:
var a:Vector.<int> ... var b:Vector.<String> ... var c:Vector.<uint> ... var c:Vector.<MyOwnClass> ... function verifyArrayLike(arr:*)๏ผBoolean ๏ฝ return (arr is Array || arr is Vector) ๏ฝ verifyArrayLike(a); verifyArrayLike(b); ...
What I'm looking for is something like _var is Vector.<*>
But Vector.<*> Is not a valid expression, not even Vector. cannot be placed on the right side of the operator.
Is there a way to check if the input argument is a valid vector of any type?
actionscript flash actionscript-3
ty.
source share