Title: #1408 - String Matching in an Array - LeetCode JavaScript Solutions
Open Graph Title: #1408 - String Matching in an Array - LeetCode JavaScript Solutions
X Title: #1408 - String Matching in an Array - LeetCode JavaScript Solutions
Description: Given an array of string words. Return all strings in words which is substring of another word in any order. String words[i] is substring of...
Open Graph Description: Given an array of string words. Return all strings in words which is substring of another word in any order. String words[i] is substring of...
X Description: Given an array of string words. Return all strings in words which is substring of another word in any order. String words[i] is substring of...
Keywords:
Opengraph URL: https://leetcodejavascript.com/solutions/string-matching-in-an-array
Domain: leetcodejavascript.com
{"@context":"https://schema.org","@type":"Code","url":"https://leetcodejavascript.com/solutions/string-matching-in-an-array","name":"#1408 - String Matching in an Array - LeetCode JavaScript Solutions","description":"Given an array of string words. Return all strings in words which is substring of another word in any order. String words[i] is substring of...","programmingLanguage":"JavaScript","codeRepository":"https://github.com/JoshCrozier/leetcode-javascript","codeSampleType":"JavaScript","text":"/**\n * @param {string[]} words\n * @return {string[]}\n */\nvar stringMatching = function(words) {\n return words.filter(s => words.some(word => word !== s && word.includes(s)));\n};","keywords":"LeetCode 1408, #1408 - String Matching in an Array, Easy, JavaScript solution","learningResourceType":"Code","isAccessibleForFree":true,"educationalLevel":"intermediate","interactivityType":"mixed"}
| author | LeetCodeJavascript.com |
| og:type | article |
| og:image | https://leetcodejavascript.com/og-image.jpg |
| og:site_name | LeetCode JavaScript Solutions |
| twitter:card | summary_large_image |
| twitter:url | https://leetcodejavascript.com/solutions/string-matching-in-an-array |
| twitter:image | https://leetcodejavascript.com/og-image.jpg |
| twitter:creator | @joshcrozier |
| theme-color | #1f2937 |
Links:
| LeetCodeJavascript.com | https://leetcodejavascript.com/ |
| Star on GitHub | https://github.com/JoshCrozier/leetcode-javascript |
| Back to all solutions | https://leetcodejavascript.com |
| View on LeetCode | https://leetcode.com/problems/string-matching-in-an-array/ |
| View on GitHub | https://github.com/JoshCrozier/leetcode-javascript/blob/master/solutions/1408-string-matching-in-an-array.js |
| Array | https://leetcodejavascript.com/tags/array |
| String | https://leetcodejavascript.com/tags/string |
| String Matching | https://leetcodejavascript.com/tags/string-matching |
| Josh Crozier | https://joshcrozier.com |
Viewport: width=device-width,initial-scale=1
Robots: index, follow