Skip to content

HarryStevens/-DEPRECATED-arrays

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project is deprecated. Please use jsz instead.

arrays.js

arrays.js is a Javascript library for manipulating arrays. Javascript has many built-in methods for manipulating arrays. The functions in this library are meant to supplement those.

To use this library, download arrays.js or arrays.min.js from the src directory and include it in your HTML file as <script src="path/to/arrays.js"></script> or <script src="path/to/arrays.min.js"></script>.

API Reference

Functions for doing math with arrays of numbers.

# arrays.average(array)

Returns the average of an array of numbers.

# arrays.extent(array)

Returns the minimum and maximum values of an array of numbers as the array [min, max].

# arrays.max(array)

Returns the maximum value of an array of numbers.

# arrays.median(array)

Returns the median of an array of numbers.

# arrays.min(array)

Returns the minimum value of an array of numbers.

# arrays.sum(array)

Returns the sum of an array of numbers.

Functions for testing arrays for certain properties. Return booleans.

# arrays.is(array)

Tests whether an element is an array. Returns true or false.

Functions for transforming arrays.

# arrays.shuffle(array)

Shuffles an array.

# arrays.sortNumbers(array)

Sorts an array of numbers.

Miscellaneous functions.

# arrays.random(array)

Returns a random item from an array.

About

A JavaScript library for manipulating arrays.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published