Prevent unnecessary reloading of raw tag editor (close #7248)

This commit is contained in:
Quincy Morgan
2020-01-18 12:30:35 -05:00
parent 73e64b2d7e
commit 721ee0e95f
4 changed files with 17 additions and 5 deletions
+10
View File
@@ -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.