@digitransit-search-util/digitransit-search-util-uniq-by-label
v2.0.0
Published
digitransit-search-util uniq-by-label module
Downloads
95
Maintainers
Readme
@digitransit-search-util/digitransit-search-util-uniq-by-label
uniqByLabel
Checks that features are unique by label
Parameters
features
Array Array of features
Examples
digitransit-search-util.uniqByLabel(features);
//= Array(2)
Returns Array Array of unique features
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-search-util/digitransit-search-util-uniq-by-label
Or install the Digitransit-util module that includes it as a function:
$ npm install @digitransit-util/digitransit-util