Skip to content

Latest commit

 

History

History
75 lines (66 loc) · 1.21 KB

README.md

File metadata and controls

75 lines (66 loc) · 1.21 KB

Jarray

Vanilla JS library for working with your arrays

Getting Started

  1. Download or clone project copy
  2. Include jarray.js to the page
  3. All methods are start from "jarray" object like that: jarray.contain(['Hello','Hello World','Hellord'], 'Hello');

Methods

contain([arr], element)
even([arr])
every([arr], index) // return array with elements that haves every index num
first([arr])
last([arr])
max([arr]) 
missing([arr]) // find missing num from 1 to arr.length
odd([arr]) 
propsLength([arr])
randomRange([arr], a, b) // a and b are index
random([arr])
reverse([arr])
shuffle([arr])
sort([arr], sign) // sign will be '<' or '>'
sortRange([arr], a, b)
sum([arr]) // only for numbers
unique([arr]) // clear array of duplicate props
without([arr], [withoutArr]) 

Author

  • Ruslan Timurziyev (sawuer) - Github

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details