import deranged from 'deranged';
deranged.parse('2005..2008,2010,2015..2018')
// => [2005, 2006, 2007, 2008, 2010, 2015, 2016, 2017, 2018]
deranged.stringify([2005, 2006, 2007, 2008, 2010, 2015, 2016, 2017, 2018])
// => '2005..2008,2010,2015..2018'
-
Notifications
You must be signed in to change notification settings - Fork 0
rymohr/deranged
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Helpers for working with discontinuous integer ranges
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published