i have array,
arr = [1, 2, "a", "a1", "3", "qw7", "b", "4", "xyz", "abcd"]
i like to filter it to according to its content iterate over each find out whether its alphabet character or number, filter out alphanumeric values to separate array, numeric to separate and alphabets to separate,
out1 = [1, 2, 3, 4]
out2= ["a", "b", "x", "y", "z", "c", "d"]
out3= ["a1", "qw7"]
i can do for out1, cant for out2 and out3
out1 = arr.filter(Number) // to get required output, [1, 2, 3, 4]
i tried using,
arr.map( i=>{
if (i typeof string){
out2.push(i);
}
})