Skip to content

A lightweight? (~20kb minfied), dependency-free, javascript library so you can count from 1.

License

Notifications You must be signed in to change notification settings

RealCyGuy/iwanttocountfromone.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iWantToCountFromOne.js

Codacy grade GitHub license GitHub issues GitHub forks

A lightweight? (~20kb minfied), dependency-free, javascript library so you can count from 1.

Installation

Link into html:

<script src="https://cdn.jsdelivr.net/gh/realcyguy/[email protected]/dist/iwanttocountfromone.min.js"></script>

Now you're good to go!

Usage

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!!!

Features

  • Count from 1!
  • Cat gifs. (In progress)

Notes

  • Index may not exceed 1000.
  • Don't take this too seriously.

License

Licensed under MIT

About

A lightweight? (~20kb minfied), dependency-free, javascript library so you can count from 1.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published