ranges-numbers-alphabets
v1.0.3
Published
Get a full range of numbers based on your start, stop, and step, or a full range of letters a-z in uppercase or lowercase.
Downloads
2
Readme
ranges-numbers-alphabets
- Get a full range of numbers based on your start, stop, and step or a full range of letters a-z in uppercase or lowercase.
Methods Available For Alphabet:
arrayAtoZ('lowercase')
arrayAtoZ('UPPERCASE')
Methods Available For Numbers:
(still working on error checking for this method)
arrayNumberRange(start, stop, step)
// start and stop are required (int)
// step is optional (int)
// returns an array
- full range 1 to 100
arrayNumberRange(1, 100)
// returns an array [ 1, 2, 3, 4, 5, ...100 ]
- full range 2 to 100 of even numbers
arrayNumberRange(2, 100, 2)
// returns an array [ 2, 4, 6, 8, 10, ...100 ]
- full range 1 to 99 of odd numbers
arrayNumberRange(1, 99, 2)
// returns an array [ 1, 3, 7, 9, ...99 ]
- Step backwards from 5 to 1
arrayNumberRange(5, 1, -1)
// returns an array [ 5, 4, 3, 2, 1 ]