v2.0.0
Behavior changes for undefined
It serializes undefined
values as follows since this version. The result of serialization may be changed if you are passing undefined
values into the serialize-javascript
.
v2.x
const serialize = require('serialize-javascript');
serialize({undef: undefined}); // '{"undef":undefined}'
v1.x
const serialize = require('serialize-javascript');
serialize({undef: undefined}); // '{}'