Array.isArray(arr) arr instanceof Object a instanceof ns.Array a.x[2] instanceof foo()