@digitransit-search-util/digitransit-search-util-is-duplicate
v2.0.0
Published
digitransit-search-util is-duplicate module
Downloads
83
Maintainers
Readme
@digitransit-search-util/digitransit-search-util-is-duplicate
isDuplicate
Checks that is items duplicate
Parameters
item1
Object Object containing following attributes: { properties { gtfsId: String gid: String from geocoder name: String label: String address: String geometry { coordinates [Number lat, Number lon] } } }item2
Object Object with same attributes as item1
Examples
digitransit-util.isDuplicate(param1, param2);
//=true
Returns Boolean true/false
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-is-duplicate
Or install the Digitransit-util module that includes it as a function:
$ npm install @digitransit-util/digitransit-util