MooTools: How to tell if object is array?

arrays, javascript, mootools, object

Solution

MooTools has a $type(), where you pass in an object.

var myString = 'hello';
$type(myString);

You can find more information at http://mootools.net/docs/core#type

Problem

Is there a shortcut in MooTools for telling if an object is an object or an array?

Original source