結果 : javascript check if object is a certain type