If I try to safeDump an object with a function, I get:
JS-YAML: unacceptabe kind of an object to dump (function)
I work around it with:
yaml.safeDump(JSON.parse(JSON.stringify(obj)))
but that's kind of silly. It would be nice to have an option to ignore stuff that's "unacceptabe".
If I try to safeDump an object with a function, I get:
I work around it with:
but that's kind of silly. It would be nice to have an option to ignore stuff that's "unacceptabe".