Update isValidJSON.md

This commit is contained in:
Angelos Chalaris
2017-12-31 15:01:34 +02:00
committed by GitHub
parent 65768653dd
commit 21d6886f8d

View File

@ -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) => {