Timeline for Form a string consisting of the common letters that appear in two input strings
Current License: CC BY-SA 4.0
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 28, 2018 at 9:30 | comment | added | morbusg |
That would make a nice one-liner: common = (str1, str2) => str1.split('').filter(s => str2.contains(s)).join('')
|
|
Dec 26, 2018 at 13:16 | history | answered | jmoreno | CC BY-SA 4.0 |