diff options
Diffstat (limited to 'src/utility.js')
-rw-r--r-- | src/utility.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utility.js b/src/utility.js index 53555aa5..91c4abe3 100644 --- a/src/utility.js +++ b/src/utility.js @@ -272,3 +272,7 @@ function copy(x) { return JSON.parse(JSON.stringify(x)); } +function jsonCompare(x, y) { + return JSON.stringify(x) == JSON.stringify(y); +} + |