How to i get the data from from [Object object]?
Here is an example of what i’m trying to do.
// Get data with dirty
var data = db.get('/htmltest')
// My test.db file
{"key":"foo","val":"barwhat?"}
{"key":"/htmltest","val":{"title":"Html Test","content":"<span>This is HTML</span>"}}
// the console.log gives me [Object Object]
// How do I get it to show the content of title (Html Test)
console.log(data);
According to the documentation, the
getmethod returns the value for a given key. In that case you should be able to access thetitleproperty like so: