Skip to content

Create a median range with lower and upper bounds. Useful for creating paginations.

License

Notifications You must be signed in to change notification settings

yornaath/median-range

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

median-range

install

npm install median-range

Create a median range with lower and upper bounds. Useful for creating paginations.

medianrange(10, 3) === [9, 10, 11]

with lower bounds

medianrange(10, 5, 9) === [9,10,11,12,13]

with upper bounds

medianrange(10, 5, 0, 11) === [7,8,9,10,11]

About

Create a median range with lower and upper bounds. Useful for creating paginations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%