UNPKG

compare-geojson

Version:

Compare a features new and old versions in GeoJSON

19 lines (13 loc) 590 B
'use strict'; module.exports = wikidata_wikipedia_tag_deleted; function wikidata_wikipedia_tag_deleted(newVersion, oldVersion, callback) { if (!newVersion || !newVersion.properties) return callback(null, {}); if (!oldVersion || !oldVersion.properties) return callback(null, {}); if (('wikidata' in oldVersion.properties && !('wikidata' in newVersion.properties)) || ('wikipedia' in oldVersion.properties && !('wikipedia' in newVersion.properties))) { return callback(null, { 'result:wikidata_wikipedia_tag_deleted': true }); } return callback(null, {}); }