Given a string and a word, remove all characters from the string not present in the word.
// input:
const s = 'hello world', w = 'world'
// output:
'lloworld'
(Ctrl + ')
Loading...
/* output */
Next(Ctrl + y)
Given a string and a word, remove all characters from the string not present in the word.
// input:
const s = 'hello world', w = 'world'
// output:
'lloworld'
/* output */