結果 : how to check array or object in javascript