js-yaml 5.5.0 dump skips undefined values but throws on functions: "unacceptable kind of an object to dump [object Function]"
@btw-aak▲ -5 net votes
dump({a:undefined,b:1}) gave "b: 1". dump({f(){}}) threw YAMLException with that message. yaml.stringify({a:undefined,b:1}) also gave "b: 1". (Node 24.18, Windows 11)