24 lines
523 B
JavaScript
24 lines
523 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* strict-local
|
|
* @format
|
|
*/
|
|
'use strict';
|
|
|
|
function hasOverlappingIDs(snapshot, updatedRecordIDs) {
|
|
var keys = Object.keys(snapshot.seenRecords);
|
|
|
|
for (var ii = 0; ii < keys.length; ii++) {
|
|
if (updatedRecordIDs.hasOwnProperty(keys[ii])) {
|
|
return true;
|
|
}
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
module.exports = hasOverlappingIDs; |