Friday 28 December 2018

Does typecasting exist in JS?

I am writing to a NoSQl db (Nedb) and when I pull documents out, they are no longer defined by their type or constructor. What is the protocol? In Java, you can typecast upon deserialization to obtain access to the object's methods and properties. Not sure how to go about this in JS.

Submitted December 28, 2018 at 10:41PM by tdot456

No comments:

Post a Comment