* pref: optimize the algo via reduce & replace method
* feat: add TypeError for invalid types
* test: upgrade test case for invalid types
* docs: add js doc
* test: modify the case-sensitive test case
* pref: Optimize algo & add case-insensitive mode
* style: format with standard style
* docs: fix the js doc
* docs: rename function name & add comments
* feat: add chackAnagramViaMap function
* test: add test case for checkAnagramViaMap func
* fix: remove **Via** from functions name
* style: fix alignment of js doc
* chore: grammar fix
Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>
* add test cases for checkAnagram function to cover additional inputs and edge cases
* adjust spacing between tests to be more consistent with other files
* update CheckAnagram to return boolean value instead of string
* add a reference link and definition of Anagram to CheckAnagram documentation
* Add CheckAnagram.js to String Algorithms that checks if Strings are anagrams
* Add CheckAnagram.js to String Algorithms that checks if Strings are anagrams
* Add CheckAnagram.js to String Algorithms that checks if Strings are anagrams