結果 : check if object type javascript