43081j / picoquery

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

Omit undefined values in stringify #51

Closed RikSchefferAmsterdam closed 3 months ago

RikSchefferAmsterdam commented 3 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 3 months ago

makes sense to me! this is a bug for sure

thanks for the contribution 💙