Travis build: 846

This commit is contained in:
30secondsofcode
2018-12-04 06:54:04 +00:00
parent 5e96ec97e7
commit 96b8fc7ef0
3 changed files with 8 additions and 8 deletions

View File

@ -613,9 +613,9 @@ const isSymbol = val => typeof val === 'symbol';
const isTravisCI = () => 'TRAVIS' in process.env && 'CI' in process.env;
const isUndefined = val => val === undefined;
const isUpperCase = str => str === str.toUpperCase();
const isValidJSON = obj => {
const isValidJSON = str => {
try {
JSON.parse(obj);
JSON.parse(str);
return true;
} catch (e) {
return false;