1.2.5 • Published 2 years ago

koala-utilities v1.2.5

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Koala-Utilities

INFO

After installing using Npm you can import it as follows: import { Utilities } from "koala-utilities". \ Call each function with console.log(Utilities.${function}) or the printing equivalent.

Update Log

1.2.5 - Worked on the error happening with the not being able to find the file \ 1.2.4 - Changed small things like the console.log() bug \ 1.2.3 - Added one new function: randomElement() \ 1.1.3 - Fixed Update Log \ 1.1.2 - Changed README.md \ 1.1.1 - Various bug fixes \ 1.1.0 - Added three new functions: randomInt(), randomNum(), and sleep()

All Functions

In Alphabetical Order

count:

Call with: Utilities.count(array, item)
Description: Counts the amount of a certain item in a given array
Arguments: 
array - The array you want to count from
item - The item you want to count
Need-To-Knows: Utilities.count(array, item) will return a number and is case-sensitive

randomElement:

Call with: Utilities.randomElement(array)
Description: Gets a random element in a given array
Arguments: 
array - The array to grab an element from
Need-To-Knows: Utilities.randomElement(array) can contain arrays inside of it

randomInt:

Call with: Utilities.randomInt(min, max)
Description: Gets a random whole number between min and max
Arguments: 
min - Minimum number in the range
max - Maximum number in the range
Need-To-Knows: Utilities.randomInt(min, max) will automaticly convert your min and max to whole numbers 

randomNum:

Call with: Utilities.randomNum(min, max)
Description: Gets a random number between min and max
Arguments: 
min - Minimum number in the range
max - Maximum number in the range
Need-To-Knows: Utilities.randomNum(min, max) will give you a decimal rounded to the nearest hundredth

sleep:

Call with: Utilities.sleep(ms)
Description: Stops code for a certain amount of time
Arguments: 
ms - How long you want to sleep in ms
Need-To-Knows: Utilities.sleep(ms) won't return anything
1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago