Creates a generator that yields all characters between two specified characters (inclusive).
The starting character of the range
The ending character of the range
Each character in the range, from firstChar to lastChar
// Generate all lowercase letters from 'a' to 'e'const letters = [...charRange('a', 'e')]// Result: ['a', 'b', 'c', 'd', 'e'] Copy
// Generate all lowercase letters from 'a' to 'e'const letters = [...charRange('a', 'e')]// Result: ['a', 'b', 'c', 'd', 'e']
// Generate digits from '0' to '9'const digits = [...charRange('0', '9')]// Result: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] Copy
// Generate digits from '0' to '9'const digits = [...charRange('0', '9')]// Result: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
Creates a generator that yields all characters between two specified characters (inclusive).