A lightweight? (~20kb minfied), dependency-free, javascript library so you can count from 1.
Link into html:
<script src="https://cdn.jsdelivr.net/gh/realcyguy/[email protected]/dist/iwanttocountfromone.min.js"></script>
Now you're good to go!
Just count by 1!
// Start of code block.
var array = ["hi", "bye"];
console.log(array[0]); // Normal way (counting by zero (bad (like very (very) bad))).
>> "hi"
console.log(array[iwanttocountfromone(1)]); // Very good and cool way.
>> "hi"
console.log(array[iwanttocountfromone(2)]);
>> "bye"
Don't count from 0!
console.log(array[iwanttocountfromone(0)]);
>> NO COUNTING BY ZERO!!!
- Count from 1!
- Cat gifs. (In progress)
- Index may not exceed 1000.
- Don't take this too seriously.
Licensed under MIT