feat: option to not serialize functions
AndersDJohnson opened this issue · comments
Anders D. Johnson commented
Daniel Kim commented
+1+1+1+1
Daniel Kim commented
who guys made any forked version?
Found a cheap workaround for now...
const obj = { func: [Function] };
obj.func.toString = () => null;
serialize(obj); // got no exception
Seth Bertalotto commented
Feel free to open a PR for this change and we can review it.
Ryuichi Okumura commented
The new option ignoreFunction
is available in v2.1.0. Thanks!
https://github.com/yahoo/serialize-javascript#optionsignorefunction