Not sure about MooTools, but you can check with Javascript:
var someObject = [];
console.log(someObject instanceof Array)
But since the array is also an object, you will need to check if it was an array first before checking the object. But using the method $typeis probably easier.
Edit
Mootools $type, :
:
console.log($type("hello"));βββββ
console.log($type(new Object()));
console.log($type([1, 2, 3]));
β
:
string
object
array
, http://mootools.net/shell/
- http://javascript-reference.info/useful-utility-functions-in-mootools.htm