@digitransit-util/digitransit-util-day-range-pattern
v1.0.4
Published
digitransit-util digitransit-util-day-range-pattern module
Downloads
13
Maintainers
Readme
@digitransit-util/digitransit-util-day-range-pattern
dayRangePattern
Finds the range pattern converted from array of pattern's unique active dates.
Parameters
arrayOfDayNumbers
Array Array of pattern's unique active dates as Day Of Week (ISO) (e.g. 5,6 = only Friday and Saturday)
Examples
digitransit-util.dayRangePattern([5,6,5,6,5,6]);
//='pe-la'
Returns string Range pattern
This module is part of the Digitransit-ui project. It is maintained in the HSLdevcom/digitransit-ui repository, where you can create PRs and issues.
Installation
Install this module individually:
$ npm install @digitransit-util/digitransit-util-day-range-pattern
Or install the Digitransit-util module that includes it as a function:
$ npm install @digitransit-util/digitransit-util