From f937954b3d3d6694041dd1d023f35169033677e9 Mon Sep 17 00:00:00 2001 From: Sasi Kumar Naik Ramavath <139624616+SasiKumarNaik-dev@users.noreply.github.com> Date: Sat, 9 Nov 2024 09:16:58 +0530 Subject: [PATCH] Update anagram.js --- 01-js/easy/anagram.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;