var obj = { 0: 'name0', 1: 'name1' }; alert( Object.prototype.toString.call( Object.keys(obj) ) ); alert( Array.isArray(Object.keys(obj)) );