marcuswestin / store.js

Cross-browser storage for all use cases, used across the web.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't set a method in any object

Mattwmaster58 opened this issue · comments

For example: store.set("ex", {foo:"bar", bar: function(){console.log("foo")}})
"ex" is set to {"foo":"bar"} instead of {foo:"bar", bar: function(){console.log("foo")}}`

PS ECMAScript 2015 shorthand syntax isn't supported either.