Storing a simple object

Storing an object in a map seems to always turn it into a map. When I want to use it as a normal Javascript object, it appears that I have to do conversion.

It seems there should be a way to avoid the conversion of object properties to maps.

Am I right? Please advise.

U can use the define plugin and use as type *
https://canjs.com/docs/can.Map.prototype.define.type.html

That is exactly right. I cannot wait until I have been in this long enough to not need help finding stuff like this.

Thank you very much.

1 Like