結果 : check for object type javascript