fix: spellings which are making ci fail (#1089)

* Updated Documentation in README.md

* chore: remove wrong spelling

* ci: recognize "falsy" as correct spelling

* chore: fix spelling

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
Rak Laptudirm
2022-09-05 11:06:24 +05:30
committed by GitHub
parent a133529122
commit ad41e8cc1c
4 changed files with 3 additions and 3 deletions

View File

@ -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