instanceof Operator | Flash 6 |
determines whether an object is an instance of a given class |
Any object.
A reference to any class's constructor function.
The Boolean true if object is an instance of classConstructor; otherwise, it returns false.
The instanceof operator does not take parentheses (it is an operator, not a function).
var now = new Date(); trace(now instanceof Date); // Displays: true
typeof; the Constructor subheading for the Date class; Chapter 12; Section 5.12.7