Currently my code is doing this:
wordLetterSelect = [
{
id: 'A',
name: 'A'
}, {
id: 'B',
name: 'B'
}
];
But I need to do this for every character in the alphabet. Is there an easy way I could do this without repeating one character after another in the same way as I did for A and B?
Update
A possible duplicate question does something similar, but does not do what I'm looking for. Hope someone can help with this. Thanks
source
share