Serializes JS object as a YAML document. By default it can dump every supported YAML type, so it throws an exception if you try to dump regexps or functions. However, you can disable exceptions by setting the DumpOptions.skipInvalid option to true.
true
Serializes JS object as a YAML document. By default it can dump every supported YAML type, so it throws an exception if you try to dump regexps or functions. However, you can disable exceptions by setting the DumpOptions.skipInvalid option to
true.