From cec3db48a67a94ea2e41305325984a409cbf5f8c Mon Sep 17 00:00:00 2001 From: iamsoorena Date: Fri, 15 Dec 2017 13:08:12 +0330 Subject: [PATCH] resolving some issues about comments --- snippets/clean-json-objects.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/snippets/clean-json-objects.md b/snippets/clean-json-objects.md index 46ef745dc..2835b37fd 100644 --- a/snippets/clean-json-objects.md +++ b/snippets/clean-json-objects.md @@ -14,7 +14,8 @@ const cleanObj = (obj, keys = [], childIndicator) => { }) } /* - dirtyObj = { a: 1, b: 2, children: {a: 1, b :2}} - let cleaned = cleanObj(dirtyObj, [a]) // { a: 1, children : { a: 1}} - */ + dirtyObj = {a: 1, b: 2, children: {a: 1, b: 2}} + cleanObj(dirtyObj, ["a"],"children") + console.log(dirtyObj)// { a: 1, children : { a: 1}} +*/ ```