Skip to content

Commit 64cb998

Browse files
committed
Remove excess whitespace from README example
1 parent 2c2f0c6 commit 64cb998

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,16 @@ stringify({ a: { b: { c: 1 } } }, null, null, { maxDepth: 2 }); // "{a:{b:{}}}"
4545
/**
4646
* Invalid key names are automatically stringified.
4747
*/
48-
4948
stringify({ "some-key": 10 }); // "{'some-key':10}"
5049

5150
/**
5251
* Some object types and values can remain identical.
5352
*/
54-
5553
stringify([/.+/gi, new Number(10), new Date()]); // "[/.+/gi,new Number(10),new Date(1406623295732)]"
5654

5755
/**
5856
* Unknown or circular references are removed.
5957
*/
60-
6158
var obj = { x: 10 };
6259
obj.circular = obj;
6360

@@ -67,14 +64,12 @@ stringify(obj, null, null, { references: true }); // "(function(){var x={x:10};x
6764
/**
6865
* Specify indentation - just like `JSON.stringify`.
6966
*/
70-
7167
stringify({ a: 2 }, null, " "); // "{\n a: 2\n}"
7268
stringify({ uno: 1, dos: 2 }, null, "\t"); // "{\n\tuno: 1,\n\tdos: 2\n}"
7369

7470
/**
7571
* Add custom replacer behaviour - like double quoted strings.
7672
*/
77-
7873
stringify(["test", "string"], function (value, indent, stringify) {
7974
if (typeof value === "string") {
8075
return '"' + value.replace(/"/g, '\\"') + '"';

0 commit comments

Comments
 (0)