diff --git a/snippets/isValidJSON.md b/snippets/isValidJSON.md index af9781a23..e81748be9 100644 --- a/snippets/isValidJSON.md +++ b/snippets/isValidJSON.md @@ -1,8 +1,8 @@ ### isValidJSON -Checks if the provided argument is an valid JSON. - +Checks if the provided argument is a valid JSON. +Use `JSON.parse()` and a `try... catch` block to check if the provided argument is a valid JSON. ```js const arr = (obj) => {