Identifying Object Types in Effect Without Using `instanceof`

Hi, i am trying to convert an object into plain object, those object might contain some effect stuff, for exmaple

const obj = {
  response: someResponse // typed as HttpClientResponse.HttpClientResponse <- not a class
}

const filtered = filter(obj) // {} 


in effect, some stuffs are just objects and not class, so i cant really do
instanceof
so is there any solution to identify if following object is of particular type? for example how do i test for HttpClientResponse.HttpClientResponse?
Was this page helpful?