This function generates an array of alphabet characters from ‘a’ to ‘z’.
JavaScript:
let alphabetArray = () => [...'abcdefghijklmnopqrstuvwxyz'];
// Example
console.log(alphabetArray()); // ['a', 'b', 'c', ..., 'z']
TypeScript:
let alphabetArray = (): string[] => [...'abcdefghijklmnopqrstuvwxyz'];
// Example
console.log(alphabetArray()); // ['a', 'b', 'c', ..., 'z']