I\'m doing some JavaScript debugging with Chrome dev tools and found the following oddity.
How is it possible that date has a different value when the
date
This happens when you define a non enumerable property on an object like this
Object.defineProperty(res, 'url', { value: '/api/url' });
To fix this you have to make it enumerable like this
Object.defineProperty(res, 'url', { value: '/api/url', enumerable: true });