Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When creating a mapping from a JS Object, drop undefined values (Closes
#173) BREAKING CHANGE: When creating a YAML mapping from a JS Object, keys with `undefined` values are not included. This matches the behaviour of `JSON.stringify()`. In all other cases, the handling of `undefined` is unchanged, so e.g. `[1, undefined, 2]` will still result in a sequence of three items, the second of which has a `null` value. This too matches the behaviour of `JSON.stringify()`. Previously, `undefined` object values were mapped to `null`.
- Loading branch information
Showing
2 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters