Prelude API
    Preparing search index...

    Function charRange

    • Creates a generator that yields all characters between two specified characters (inclusive).

      Parameters

      • firstChar: string

        The starting character of the range

      • lastChar: string

        The ending character of the range

      Returns Generator<string>

      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']
      // Generate digits from '0' to '9'
      const digits = [...charRange('0', '9')]
      // Result: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']