diff --git a/01-js/easy/anagram.js b/01-js/easy/anagram.js index 8184c83083..aeed32280b 100644 --- a/01-js/easy/anagram.js +++ b/01-js/easy/anagram.js @@ -5,7 +5,7 @@ */ function isAnagram(str1, str2) { - + return str2.split('').every(i => str1.split('').includes(i)) && str1.split('').every(i => str2.split('').includes(i)) } module.exports = isAnagram;