Update isValidJSON.md

This commit is contained in:
Angelos Chalaris
2017-12-31 15:01:34 +02:00
committed by GitHub
parent 27e74ce5cc
commit 8e28d90220

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