I am looking to split an array of strings into multiple arrays based on alphabetical order. Can you help me achieve this?
For example:
let array = ['cheese', 'corn', 'apple', 'acorn', 'beet', 'banana', 'yam', 'yucca']
// the desired outcome is:
a = ['apple', 'acorn']
b = ['banana', 'beet']
c = ['cheese', 'corn']
y = ['yam', 'yucca']