This is used to extract string,number and symbol seperately.
npm i splitstringseparate --save
Then...
import {splitstringseparate} from 'splitstringseparate'
let stringss= "ASDD's 6786test#*&&&&s";
splitstringseparate(stringss);
"type":"module"
string consider all the alphabets,numbers and symbols.