From fd68c221da42279a9b19e3d6f9afe76eadc2261b Mon Sep 17 00:00:00 2001 From: Isabelle Viktoria Maciohsek Date: Tue, 20 Oct 2020 23:29:39 +0300 Subject: [PATCH] Fix quotes --- snippets/detectDeviceType.md | 2 +- snippets/juxt.md | 4 ++-- snippets/prettyBytes.md | 6 +++--- snippets/randomHexColorCode.md | 2 +- snippets/reduceWhich.md | 2 +- snippets/removeAccents.md | 2 +- snippets/toDecimalMark.md | 2 +- snippets/toHSLObject.md | 2 +- snippets/toHash.md | 2 +- snippets/toISOStringWithTimezone.md | 2 +- snippets/toKebabCase.md | 4 ++-- snippets/toOrdinalSuffix.md | 2 +- snippets/toRGBObject.md | 2 +- snippets/toSnakeCase.md | 5 +++-- snippets/words.md | 4 ++-- 15 files changed, 22 insertions(+), 21 deletions(-) diff --git a/snippets/detectDeviceType.md b/snippets/detectDeviceType.md index 23f09797f..311da2ab3 100644 --- a/snippets/detectDeviceType.md +++ b/snippets/detectDeviceType.md @@ -15,5 +15,5 @@ const detectDeviceType = () => ``` ```js -detectDeviceType(); // "Mobile" or "Desktop" +detectDeviceType(); // 'Mobile' or 'Desktop' ``` diff --git a/snippets/juxt.md b/snippets/juxt.md index 66d67e8ac..25d9648d0 100644 --- a/snippets/juxt.md +++ b/snippets/juxt.md @@ -20,6 +20,6 @@ juxt( )(1, 2, 3); // [[2, 3, 4], [0, 1, 2], [10, 20, 30]] juxt( s => s.length, - s => s.split(" ").join("-") -)("30 seconds of code"); // [[18], ['30-seconds-of-code']] + s => s.split(' ').join('-') +)('30 seconds of code'); // [[18], ['30-seconds-of-code']] ``` diff --git a/snippets/prettyBytes.md b/snippets/prettyBytes.md index 4bcc13668..b75e93614 100644 --- a/snippets/prettyBytes.md +++ b/snippets/prettyBytes.md @@ -22,7 +22,7 @@ const prettyBytes = (num, precision = 3, addSpace = true) => { ``` ```js -prettyBytes(1000); // "1 KB" -prettyBytes(-27145424323.5821, 5); // "-27.145 GB" -prettyBytes(123456789, 3, false); // "123MB" +prettyBytes(1000); // '1 KB' +prettyBytes(-27145424323.5821, 5); // '-27.145 GB' +prettyBytes(123456789, 3, false); // '123MB' ``` diff --git a/snippets/randomHexColorCode.md b/snippets/randomHexColorCode.md index 107487ca2..f07c9d22d 100644 --- a/snippets/randomHexColorCode.md +++ b/snippets/randomHexColorCode.md @@ -16,5 +16,5 @@ const randomHexColorCode = () => { ``` ```js -randomHexColorCode(); // "#e34155" +randomHexColorCode(); // '#e34155' ``` diff --git a/snippets/reduceWhich.md b/snippets/reduceWhich.md index 056ef261d..4b8b696b7 100644 --- a/snippets/reduceWhich.md +++ b/snippets/reduceWhich.md @@ -19,5 +19,5 @@ reduceWhich([1, 3, 2], (a, b) => b - a); // 3 reduceWhich( [{ name: 'Tom', age: 12 }, { name: 'Jack', age: 18 }, { name: 'Lucy', age: 9 }], (a, b) => a.age - b.age -); // {name: "Lucy", age: 9} +); // {name: 'Lucy', age: 9} ``` diff --git a/snippets/removeAccents.md b/snippets/removeAccents.md index ea5d0ec1d..5e531f265 100644 --- a/snippets/removeAccents.md +++ b/snippets/removeAccents.md @@ -9,7 +9,7 @@ Removes accents from strings. - Use `String.prototype.replace()` to replace diacritical marks in the given Unicode range by empty strings. ```js -const removeAccents = str => str.normalize("NFD").replace(/[\u0300-\u036f]/g, ""); +const removeAccents = str => str.normalize('NFD').replace(/[\u0300-\u036f]/g, ''); ``` ```js diff --git a/snippets/toDecimalMark.md b/snippets/toDecimalMark.md index ad2c2062d..897173403 100644 --- a/snippets/toDecimalMark.md +++ b/snippets/toDecimalMark.md @@ -12,5 +12,5 @@ const toDecimalMark = num => num.toLocaleString('en-US'); ``` ```js -toDecimalMark(12305030388.9087); // "12,305,030,388.909" +toDecimalMark(12305030388.9087); // '12,305,030,388.909' ``` diff --git a/snippets/toHSLObject.md b/snippets/toHSLObject.md index b864c110e..ac8963993 100644 --- a/snippets/toHSLObject.md +++ b/snippets/toHSLObject.md @@ -17,5 +17,5 @@ const toHSLObject = hslStr => { ``` ```js -toHSLObject("hsl(50,10%,10%)"); // { hue: 50, saturation: 10, lightness: 10 } +toHSLObject('hsl(50,10%,10%)'); // { hue: 50, saturation: 10, lightness: 10 } ``` diff --git a/snippets/toHash.md b/snippets/toHash.md index d4321fbd8..a226ab50c 100644 --- a/snippets/toHash.md +++ b/snippets/toHash.md @@ -29,5 +29,5 @@ managers.forEach( return this[id]; }, toHash(users, 'id'))) ); -managers; // [ { manager:1, employees: [ { id: 2, first: "Joe" }, { id: 3, first: "Moe" } ] } ] +managers; // [ { manager:1, employees: [ { id: 2, first: 'Joe' }, { id: 3, first: 'Moe' } ] } ] ``` diff --git a/snippets/toISOStringWithTimezone.md b/snippets/toISOStringWithTimezone.md index 35016cbcd..e3488f823 100644 --- a/snippets/toISOStringWithTimezone.md +++ b/snippets/toISOStringWithTimezone.md @@ -26,5 +26,5 @@ const toISOStringWithTimezone = date => { ``` ```js -toISOStringWithTimezone(new Date()); // "2020-10-06T20:43:33-04:00" +toISOStringWithTimezone(new Date()); // '2020-10-06T20:43:33-04:00' ``` diff --git a/snippets/toKebabCase.md b/snippets/toKebabCase.md index 37b54bc63..788b4f1d4 100644 --- a/snippets/toKebabCase.md +++ b/snippets/toKebabCase.md @@ -20,6 +20,6 @@ const toKebabCase = str => toKebabCase('camelCase'); // 'camel-case' toKebabCase('some text'); // 'some-text' toKebabCase('some-mixed_string With spaces_underscores-and-hyphens'); // 'some-mixed-string-with-spaces-underscores-and-hyphens' -toKebabCase('AllThe-small Things'); // "all-the-small-things" -toKebabCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML'); // "i-am-listening-to-fm-while-loading-different-url-on-my-browser-and-also-editing-xml-and-html" +toKebabCase('AllThe-small Things'); // 'all-the-small-things' +toKebabCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML'); // 'i-am-listening-to-fm-while-loading-different-url-on-my-browser-and-also-editing-xml-and-html' ``` diff --git a/snippets/toOrdinalSuffix.md b/snippets/toOrdinalSuffix.md index b146b3bbe..f0262f2f8 100644 --- a/snippets/toOrdinalSuffix.md +++ b/snippets/toOrdinalSuffix.md @@ -23,5 +23,5 @@ const toOrdinalSuffix = num => { ``` ```js -toOrdinalSuffix('123'); // "123rd" +toOrdinalSuffix('123'); // '123rd' ``` diff --git a/snippets/toRGBObject.md b/snippets/toRGBObject.md index 200777f31..4cfa951a7 100644 --- a/snippets/toRGBObject.md +++ b/snippets/toRGBObject.md @@ -17,5 +17,5 @@ const toRGBObject = rgbStr => { ``` ```js -toRGBObject("rgb(255,12,0)"); // {red: 255, green: 12, blue: 0} +toRGBObject('rgb(255,12,0)'); // {red: 255, green: 12, blue: 0} ``` diff --git a/snippets/toSnakeCase.md b/snippets/toSnakeCase.md index 8ec77a0cf..12ba7f85c 100644 --- a/snippets/toSnakeCase.md +++ b/snippets/toSnakeCase.md @@ -20,6 +20,7 @@ const toSnakeCase = str => toSnakeCase('camelCase'); // 'camel_case' toSnakeCase('some text'); // 'some_text' toSnakeCase('some-mixed_string With spaces_underscores-and-hyphens'); // 'some_mixed_string_with_spaces_underscores_and_hyphens' -toSnakeCase('AllThe-small Things'); // "all_the_small_things" -toSnakeCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML'); // "i_am_listening_to_fm_while_loading_different_url_on_my_browser_and_also_editing_some_xml_and_html" +toSnakeCase('AllThe-small Things'); // 'all_the_small_things' +toSnakeCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML'); // +'i_am_listening_to_fm_while_loading_different_url_on_my_browser_and_also_editing_some_xml_and_html' ``` diff --git a/snippets/words.md b/snippets/words.md index 6671f80e7..fe8b0aa5f 100644 --- a/snippets/words.md +++ b/snippets/words.md @@ -14,6 +14,6 @@ const words = (str, pattern = /[^a-zA-Z-]+/) => str.split(pattern).filter(Boolea ``` ```js -words('I love javaScript!!'); // ["I", "love", "javaScript"] -words('python, javaScript & coffee'); // ["python", "javaScript", "coffee"] +words('I love javaScript!!'); // ['I', 'love', 'javaScript'] +words('python, javaScript & coffee'); // ['python', 'javaScript', 'coffee'] ```