I have array like this
Var arr =[
            ["ali", "classroom1"],
            ["john", "classroom1"],
            ["Doe", "classroom1"],
            ["ahmed", "classroom2"],
            ["Mo", "classroom2"],
            ["Wael", "classroom3"]
           ]
            
Now I want to create arrays or slit it to get array for classroom1 and different array for classroom2 .....
I used splice and map but it seems they're not used for this
 
    