From fe28735cf90c645b0bc7ffb42f13e1d98bebc6d7 Mon Sep 17 00:00:00 2001 From: Dhanush Date: Fri, 1 Dec 2023 05:48:06 +0000 Subject: [PATCH] Sync LeetCode submission - Check If Two String Arrays are Equivalent (javascript) --- .../check_if_two_string_arrays_are_equivalent/solution.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 problems/check_if_two_string_arrays_are_equivalent/solution.js diff --git a/problems/check_if_two_string_arrays_are_equivalent/solution.js b/problems/check_if_two_string_arrays_are_equivalent/solution.js new file mode 100644 index 0000000..fa8fa70 --- /dev/null +++ b/problems/check_if_two_string_arrays_are_equivalent/solution.js @@ -0,0 +1,8 @@ +/** + * @param {string[]} word1 + * @param {string[]} word2 + * @return {boolean} + */ +var arrayStringsAreEqual = function(word1, word2) { + return word1.join("") == word2.join("") +}; \ No newline at end of file