Skip to content
/ jarray Public

Vanilla JS library for working with your arrays

Notifications You must be signed in to change notification settings

sawuer/jarray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Vanilla JS library for working with your arrays

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published