how do I store and retrieve instances of a type th...
# javascript
j
how do I store and retrieve instances of a type that go through native JS objects? I'm writing to Chrome's
localstorage
an
Array<Item>
. When I get that
Array<Item>
back out, the objects in the JS array are anonymous with only the mangled properties. So when the JS calls
instance.foo
I get
undefined
as the
Object.defineProperty
stuff was never created to forward that call to
foo_07w3c0_0