Packages 25
Description
Simple, small array-paginating TypeScript/JavaScript class
Publisher
Description
a simple TypeScript interface
Publisher
Description
Functions that check if the index is valid and the array is actually an array.
Publisher
Description
Takes 2 arrays as arguments, and if they match, returns true
Publisher
Description
3 functions: getSum(), getAverage(), getProduct()
Publisher
Description
3 functions: getRounded(), getRoundedUp(), getRoundedDown()
Publisher
Description
2 functions that return array of numbers in ascending order, and array of numbers in descending order, respectively.
Publisher
Description
Function takes a float and returns the digits on the right of the decimal
Publisher
Description
a rounding function that may give more accurate rounding results than the method taught in school. It avoids cumulative errors
Publisher
Description
2 functions: one gives you 1 random integer within a chosen range, the other gives you many.
Publisher
Description
Returns the median from an array of numbers
Publisher
Description
A better alternative to the sneaky exclamation point
Publisher
Description
Functions append() and prepend(), which are alternatives to Array.push() and Array.unshift()
Publisher
Description
functions that remove and return sections of the array
Publisher
Description
Function that removes and returns section of the array, starting with, or close to, a particular value
Publisher
Description
Array-handling function that removes items adjacent to (or near) a given value.
Publisher
Description
Functions that search for instances of a value in an array and remove them.
Publisher
Description
Function removes any duplicate items in an array
Publisher
Description
It returns a copy of the array with the order of items randomized
Publisher
Description
Orders an array alphabetically. Optional callback allows you to choose what value in each element to sort by
Publisher
Description
Function triggers error if argument is not an array with at least one item
Publisher
Description
A more helpful alternative to JSON.parse()
Publisher
Description
Function takes array and triggers error if not all items in it are arrays
Publisher
Description
Function that inserts new items at a specified index in the array
Publisher
Description
Replaces 1 item in array at specified index