diff --git a/.github/workflows/Ci.yml b/.github/workflows/Ci.yml index cda14c3c6..29036d713 100644 --- a/.github/workflows/Ci.yml +++ b/.github/workflows/Ci.yml @@ -35,4 +35,4 @@ jobs: with: # file types to ignore skip: "*.json,*.yml,DIRECTORY.md" - ignore_words_list: "ba,esy,yse" + ignore_words_list: "ba,esy,yse,falsy" diff --git a/DIRECTORY.md b/DIRECTORY.md index dccfbb7c9..f2d0bf4fa 100644 --- a/DIRECTORY.md +++ b/DIRECTORY.md @@ -170,6 +170,7 @@ * [IsEven](Maths/IsEven.js) * [IsOdd](Maths/IsOdd.js) * [IsPronic](Maths/IsPronic.js) + * [JugglerSequence](Maths/JugglerSequence.js) * [LeapYear](Maths/LeapYear.js) * [LinearSieve](Maths/LinearSieve.js) * [LucasSeries](Maths/LucasSeries.js) diff --git a/Maths/PiApproximationMonteCarlo.js b/Maths/PiApproximationMonteCarlo.js index 08849b547..882818601 100644 --- a/Maths/PiApproximationMonteCarlo.js +++ b/Maths/PiApproximationMonteCarlo.js @@ -13,7 +13,7 @@ const piEstimation = (iterations = 100000) => { if (radius < 1) circleCounter += 1 } - // fomula for pi = (ratio of number inside circle and total iteration) x 4 + // formula for pi = (ratio of number inside circle and total iteration) x 4 const pi = (circleCounter / iterations) * 4 return pi } diff --git a/String/CheckAnagram.js b/String/CheckAnagram.js index 1fc585429..4a7c521b6 100644 --- a/String/CheckAnagram.js +++ b/String/CheckAnagram.js @@ -22,7 +22,6 @@ const checkAnagramRegex = (str1, str2) => { /** * str1 converted to an array and traverse each letter of str1 by reduce method * reduce method return string which is empty or not. - * if it returns empty string '' -> falsy, with Logical !(NOT) Operator, it's will be converted to boolean and return true else false */ return ![...str1].reduce( (str2Acc, cur) => str2Acc.replace(new RegExp(cur, 'i'), ''), // remove the similar letter from str2Acc in case-insensitive