Skip to content

Commit cc71e41

Browse files
committed
Travis build: 848 [cron]
1 parent b6c5238 commit cc71e41

6 files changed

Lines changed: 14 additions & 14 deletions

File tree

dist/_30s.es5.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,9 +1274,9 @@
12741274
var isUpperCase = function isUpperCase(str) {
12751275
return str === str.toUpperCase();
12761276
};
1277-
var isValidJSON = function isValidJSON(obj) {
1277+
var isValidJSON = function isValidJSON(str) {
12781278
try {
1279-
JSON.parse(obj);
1279+
JSON.parse(str);
12801280
return true;
12811281
} catch (e) {
12821282
return false;

dist/_30s.esm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,9 +610,9 @@ const isSymbol = val => typeof val === 'symbol';
610610
const isTravisCI = () => 'TRAVIS' in process.env && 'CI' in process.env;
611611
const isUndefined = val => val === undefined;
612612
const isUpperCase = str => str === str.toUpperCase();
613-
const isValidJSON = obj => {
613+
const isValidJSON = str => {
614614
try {
615-
JSON.parse(obj);
615+
JSON.parse(str);
616616
return true;
617617
} catch (e) {
618618
return false;

dist/_30s.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,9 +616,9 @@
616616
const isTravisCI = () => 'TRAVIS' in process.env && 'CI' in process.env;
617617
const isUndefined = val => val === undefined;
618618
const isUpperCase = str => str === str.toUpperCase();
619-
const isValidJSON = obj => {
619+
const isValidJSON = str => {
620620
try {
621-
JSON.parse(obj);
621+
JSON.parse(str);
622622
return true;
623623
} catch (e) {
624624
return false;

snippet_data/snippetList.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2467,7 +2467,7 @@
24672467
"archived": false
24682468
},
24692469
"meta": {
2470-
"hash": "b4417a972f391836241e88587797a8cd995f32ee71fbfcfe9e590c8fa8675558"
2470+
"hash": "9a304bb4dbaddc9c5e0cdc56606ee8286c891d6f82076e5742514f251b30a891"
24712471
}
24722472
},
24732473
{

snippet_data/snippets.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3622,10 +3622,10 @@
36223622
"type": "snippet",
36233623
"attributes": {
36243624
"fileName": "isValidJSON.md",
3625-
"text": "Checks if the provided argument is a valid JSON.\n\nUse `JSON.parse()` and a `try... catch` block to check if the provided argument is a valid JSON.",
3625+
"text": "Checks if the provided string is a valid JSON.\n\nUse `JSON.parse()` and a `try... catch` block to check if the provided string is a valid JSON.",
36263626
"codeBlocks": {
3627-
"es6": "const isValidJSON = obj => {\n try {\n JSON.parse(obj);\n return true;\n } catch (e) {\n return false;\n }\n};",
3628-
"es5": "var isValidJSON = function isValidJSON(obj) {\n try {\n JSON.parse(obj);\n return true;\n } catch (e) {\n return false;\n }\n};",
3627+
"es6": "const isValidJSON = str => {\n try {\n JSON.parse(str);\n return true;\n } catch (e) {\n return false;\n }\n};",
3628+
"es5": "var isValidJSON = function isValidJSON(str) {\n try {\n JSON.parse(str);\n return true;\n } catch (e) {\n return false;\n }\n};",
36293629
"example": "isValidJSON('{\"name\":\"Adam\",\"age\":20}'); // true\nisValidJSON('{\"name\":\"Adam\",age:\"20\"}'); // false\nisValidJSON(null); // true"
36303630
},
36313631
"tags": [
@@ -3636,7 +3636,7 @@
36363636
},
36373637
"meta": {
36383638
"archived": false,
3639-
"hash": "b4417a972f391836241e88587797a8cd995f32ee71fbfcfe9e590c8fa8675558"
3639+
"hash": "9a304bb4dbaddc9c5e0cdc56606ee8286c891d6f82076e5742514f251b30a891"
36403640
}
36413641
},
36423642
{

vscode_snippets/snippets.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,16 +1578,16 @@
15781578
"isValidJSON": {
15791579
"prefix": "30s_isValidJSON",
15801580
"body": [
1581-
"const isValidJSON = obj => {",
1581+
"const isValidJSON = str => {",
15821582
" try {",
1583-
" JSON.parse(obj);",
1583+
" JSON.parse(str);",
15841584
" return true;",
15851585
" } catch (e) {",
15861586
" return false;",
15871587
" }",
15881588
"};"
15891589
],
1590-
"description": "Checks if the provided argument is a valid JSON.\n\nUse `JSON.parse()` and a `try... catch` block to check if the provided argument is a valid JSON"
1590+
"description": "Checks if the provided string is a valid JSON.\n\nUse `JSON.parse()` and a `try... catch` block to check if the provided string is a valid JSON"
15911591
},
15921592
"isWritableStream": {
15931593
"prefix": "30s_isWritableStream",

0 commit comments

Comments
 (0)