I would like to split an array into two arrays (one for letters and the other for frequencies).
var list = [ "ES 324798", "LE 237076", "EN 231193" ]
This is the array that I want to split.
I would like to get an array with all letters like this :
var letters = [ "ES", "LE", "EN" ]
And an other with numbers :
var numbers = [ "324798", "237076", "231193" ]
I searched for "how to split one array in two arrays with React native" but I don't find what I want. I tried with split and splice functions but it didn't help me (or I just don't know how to use them properly).
Can you give me some tips ?