express-query-boolean icon indicating copy to clipboard operation
express-query-boolean copied to clipboard

Use JSON.parse when parsing values

Open xpepermint opened this issue 10 years ago • 1 comments
trafficstars

I would suggest to use JSON.parse to parse values.

var a = 'true';
JSON.parse(a) // returns boolean `true`

xpepermint avatar May 27 '15 22:05 xpepermint

Heh, realize this is super old, but what's the benefit of doing that?

mariusc23 avatar Jul 06 '17 16:07 mariusc23