tomnomnom / gron

Make JSON greppable!
MIT License
13.87k stars 328 forks source link

Special-case `new Array()` and `new Object` #96

Open vendethiel opened 2 years ago

vendethiel commented 2 years ago

Hi,

Would it possible to special-case new Array / new Array() and new Object/new Object() to respectively be equal to [] and {}? I'm just using a grep pre-pass for now which is fine, but since those are the same in JS, I think it'd be nice if they were recognized.