From 2cfce0fd4d0bec79b7345078124e85f4b78e1eb3 Mon Sep 17 00:00:00 2001 From: "Fernando G. Vilar" Date: Mon, 27 Apr 2020 23:58:58 -0300 Subject: [PATCH] docs: :pencil: simplifies usage examples in README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a2c33a5..8d60b8f 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ const querystring = "?string=question&boolean&string=&string=42" const query = decode(querystring); -console.log(JSON.stringify(query, "", " ")) +console.log(JSON.stringify(query)) //=> '{ boolean: true, string: [ "question", "", "42" ]}' console.log(encode(query)) @@ -36,7 +36,7 @@ const querystringZH = "?聪明&名字=Fernando&名字=&名字=王" const queryZH = decode(querystring); -console.log(JSON.stringify(query, "", " ")) +console.log(JSON.stringify(query)) //=> '{ 名字: [ "Fernando", "", "王" ], 聪明: true }' console.log(encode(query))