結果 : check if instance of object javascript