express-query-boolean
express-query-boolean copied to clipboard
Use JSON.parse when parsing values
trafficstars
I would suggest to use JSON.parse to parse values.
var a = 'true';
JSON.parse(a) // returns boolean `true`
Heh, realize this is super old, but what's the benefit of doing that?