Canop / JSON.prune

A pruning version of JSON.stringify, allowing for example to stringify window or any big or recursive object
MIT License
163 stars 27 forks source link

Avoid to redefine a property if is already defined #8

Open bud-mo opened 7 years ago

bud-mo commented 7 years ago

If the library is loaded many time may cause trouble when try to define a property many time. This modification skip to define the Date.prototype.toPrunedJSON if is already defined.