From c21b4ce44b7da57d5605c5a98adbaa13ee60af61 Mon Sep 17 00:00:00 2001 From: mphan6 Date: Sun, 14 Oct 2018 17:47:48 -0400 Subject: [PATCH 1/3] Correct palindrome.md description Corrected the second toLowerCase() function typo and tried to make the description more clear. --- snippets/palindrome.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/palindrome.md b/snippets/palindrome.md index 41924bc84..54de6e5a3 100644 --- a/snippets/palindrome.md +++ b/snippets/palindrome.md @@ -2,8 +2,8 @@ Returns `true` if the given string is a palindrome, `false` otherwise. -Convert string `String.toLowerCase()` and use `String.prototype.replace()` to remove non-alphanumeric characters from it. -Then, use the spread operator (`...`) to split string into individual characters, `Array.prototype.reverse()`, `String.prototype.join('')` and compare to the original, unreversed string, after converting it `String.tolowerCase()`. +Convert the string `String.toLowerCase()` and use `String.prototype.replace()` to remove non-alphanumeric characters from it. +Then, use the spread operator (`...`) to split the string into individual characters, `Array.prototype.reverse()`, `String.prototype.join('')` and compare it to the original, unreversed string, after converting it `String.toLowerCase()`. ```js const palindrome = str => { From a3f227a9c728dde7e4ce6a2931797ca70d013797 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Mon, 15 Oct 2018 08:06:52 +0300 Subject: [PATCH 2/3] Update palindrome.md --- snippets/palindrome.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/palindrome.md b/snippets/palindrome.md index 54de6e5a3..a231afeb2 100644 --- a/snippets/palindrome.md +++ b/snippets/palindrome.md @@ -2,8 +2,8 @@ Returns `true` if the given string is a palindrome, `false` otherwise. -Convert the string `String.toLowerCase()` and use `String.prototype.replace()` to remove non-alphanumeric characters from it. -Then, use the spread operator (`...`) to split the string into individual characters, `Array.prototype.reverse()`, `String.prototype.join('')` and compare it to the original, unreversed string, after converting it `String.toLowerCase()`. +Convert the string `String.prototype.toLowerCase()` and use `String.prototype.replace()` to remove non-alphanumeric characters from it. +Then, use the spread operator (`...`) to split the string into individual characters, `Array.prototype.reverse()`, `String.prototype.join('')` and compare it to the original, unreversed string, after converting it `String.prototype.toLowerCase()`. ```js const palindrome = str => { From b39af772d8f3aa0301aa040de5687c1f8b918966 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Mon, 15 Oct 2018 08:07:36 +0300 Subject: [PATCH 3/3] Update palindrome.md --- snippets/palindrome.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/palindrome.md b/snippets/palindrome.md index a231afeb2..eccf8cb0a 100644 --- a/snippets/palindrome.md +++ b/snippets/palindrome.md @@ -2,8 +2,8 @@ Returns `true` if the given string is a palindrome, `false` otherwise. -Convert the string `String.prototype.toLowerCase()` and use `String.prototype.replace()` to remove non-alphanumeric characters from it. -Then, use the spread operator (`...`) to split the string into individual characters, `Array.prototype.reverse()`, `String.prototype.join('')` and compare it to the original, unreversed string, after converting it `String.prototype.toLowerCase()`. +Convert the string to `String.prototype.toLowerCase()` and use `String.prototype.replace()` to remove non-alphanumeric characters from it. +Then, use the spread operator (`...`) to split the string into individual characters, `Array.prototype.reverse()`, `String.prototype.join('')` and compare it to the original, unreversed string, after converting it to `String.prototype.toLowerCase()`. ```js const palindrome = str => {