Skip to content
This repository was archived by the owner on Apr 8, 2023. It is now read-only.

Commit 03f00cc

Browse files
authored
Update snippets.code-snippets
Just changing a duplicate json parse to stringify. Thanks for the repo
1 parent 0ffe756 commit 03f00cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snippets/snippets.code-snippets

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
},
149149
"JSON.stringify": {
150150
"prefix": "json stringify",
151-
"body": ["let ${1:string} = JSON.parse(${2:obj});", "$0"],
151+
"body": ["let ${1:string} = JSON.stringify(${2:obj});", "$0"],
152152
"description": "Convert a JavaScript object to a JSON string."
153153
}
154154
}

0 commit comments

Comments
 (0)