I have noticed there are times when I console.log an object, I get the object literal and sometimes its seems what is console.logged is prefixed with a name.
For example, If I console.log an object before sending it to the server I get:
{id: 18, date: "2017-09-13T21:59:59.999Z"...etc}
but when I console the same log returned as a promise from a server call, I get:
Resource {id: 18, date: "2017-09-13T21:59:59.999Z"...etc}
What causes this differences? and What are the differences between what seems to be two different representations of an object?
myObject instanceof Resource.