Update isValidJSON.md
This commit is contained in:
@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user