mirror of
https://github.com/HSLdevcom/digitransit-ui
synced 2025-07-06 09:30:37 +02:00
.. | ||
CHANGELOG.md | ||
index.js | ||
LICENSE-AGPL.txt | ||
LICENSE-EUPL.txt | ||
package.json | ||
README.md | ||
test.js |
@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