結果 : how to check its array or object in javascript