Stack Exchange
Stack Overflow
Questions
Tags
Users
About
Stack Overflow
Public
Questions
Tags
Users
About
How can I extract all contained characters in a String?
Asked
Jan 18 '23 at 11:29
Active
Jan 18 '23 at 11:32
Viewed
21 times
0
For example:
"abbac"
contains the characters
"abc"
"yxzyyya"
contains the characters
"yxza"
javascript
string
edited Jan 18 '23 at 11:32
Sebastian Simon
18,263
7
55
75
asked Jan 18 '23 at 11:29
Max Lindner
171
1
1
7
A hint: you can use `Set`, e.g. `[...new Set("abbac")]`.
–
VisioN
Jan 18 '23 at 11:36
0 Answers
0