Example from the docs: http://mootools.net/docs/core/Core/Core#Core:instanceOf
var myClass = new Class(); var bar = new myClass(); instanceOf(bar, myClass) // returns true So you could use instanceOf for your classes. On Wed, Dec 29, 2010 at 2:30 PM, stratboy <[email protected]> wrote: > Hi! I want to check the type of a function argument. I want to be able > to say if it's an object instance of a custom class I made. > > Do you know of any way? In ActionScript there's an 'is' method that I > can use. > > Bye!
