@digitransit-search-util/digitransit-search-util-is-duplicate

2.0.0 • Public • Published

@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

Package Sidebar

Install

npm i @digitransit-search-util/digitransit-search-util-is-duplicate

Weekly Downloads

21

Version

2.0.0

License

(AGPL-3.0 OR EUPL-1.2)

Unpacked Size

55 kB

Total Files

6

Last publish

Collaborators

  • digitransit