43081j / picoquery

A small library for parsing and serializing query strings
MIT License
70 stars 2 forks source link

Omit undefined values in stringify #51

Closed RikSchefferAmsterdam closed 2 months ago

RikSchefferAmsterdam commented 2 months ago

This PR makes sure undefined values are omitted when using stringify.

Solves: #46

For example:

const obj = {
      a: undefined,
      b: 'bar'
};
console.log(stringify(obj)) // 'b=bar'
43081j commented 2 months ago

makes sense to me! this is a bug for sure

thanks for the contribution 💙