mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 21:28:11 +02:00
Prevent unnecessary reloading of raw tag editor (close #7248)
This commit is contained in:
@@ -1,4 +1,14 @@
|
||||
|
||||
// Returns true if a and b have the same elements at the same indices.
|
||||
export function utilArrayIdentical(a, b) {
|
||||
var i = a.length;
|
||||
if (i !== b.length) return false;
|
||||
while (i--) {
|
||||
if (a[i] !== b[i]) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// http://2ality.com/2015/01/es6-set-operations.html
|
||||
|
||||
// Difference (a \ b): create a set that contains those elements of set a that are not in set b.
|
||||
|
||||
Reference in New Issue
Block a user