結果 : check type of custom object typescript