Closed AutoSponge closed 7 years ago
By adding node.toJSON = function () {return node.value} you can augment the example from the readme to include:
node.toJSON = function () {return node.value}
JSON.stringify({x: x, y: y, z: z}) //> "{"x":10,"y":11,"z":[10,11,21]}"
Would you accept this as a PR?
By adding
node.toJSON = function () {return node.value}
you can augment the example from the readme to include:Would you accept this as a PR?