Iterates over a range of characters.
Only the first character of the initialCharacter will be used.
initialCharacter
If initialCharacter is empty, the sequence will start with rangeStart if stepSize is positive, or rangeEnd if stepSize is negative.
rangeStart
stepSize
rangeEnd
If stepSize is 0 the sequence is empty.
0
Iterate over uppercaseAsciiLetterRange
uppercaseAsciiLetterRange
for (const c of characterSequence(uppercaseAsciiLetterRange)) { console.log(c); // 'A','B',...,'Z'}
Start at letter 'D' and iterate backwards
for (const c of characterSequence(uppercaseAsciiLetterRange, 'D', -1)) { console.log(c); // 'D','C','B','A'}
Create a character Array
const a = [...characterSequence(uppercaseAsciiLetterRange, 'V', 2)];console.log(a); // ['V', 'X', 'Z']
an Iterable that iterates through the characters
Generated using TypeDoc
Iterates over a range of characters.
Only the first character of the
initialCharacterwill be used.If
initialCharacteris empty, the sequence will start withrangeStartifstepSizeis positive, orrangeEndifstepSizeis negative.If
stepSizeis0the sequence is empty.Example
Iterate over
uppercaseAsciiLetterRangeExample
Start at letter 'D' and iterate backwards
Example
Create a character Array
Returns
an Iterable that iterates through the characters