Travis build: 727 [ci skip]

This commit is contained in:
Travis CI
2017-12-31 13:06:22 +00:00
parent 9a57fd54b9
commit b16204e5e0
5 changed files with 96 additions and 12 deletions

View File

@ -6,14 +6,13 @@ Use `JSON.parse()` and a `try... catch` block to check if the provided argument
```js
const isValidJSON = obj => {
try{
try {
JSON.parse(obj);
return true;
}
catch(e){
} catch (e) {
return false;
}
}
};
```
```js