This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function difference(obj1, obj2) { | |
const ret = { | |
new: {}, | |
removed: {}, | |
diff: {} | |
} | |
const keys1 = Object.keys(obj1); | |
const keys2 = Object.keys(obj2); | |
for (let k of keys1) { | |
if (keys2.indexOf(k) === -1) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"form":7,"status":"draft"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"0": "title", | |
"1": "a357ed51-2b3c-45ba-b42e-cc09ff725b16", | |
"2": "241f2001-778f-4f91-a552-89486b4aaae2", | |
"3": "a06bd3fa-d4e4-47a4-9457-56632ea54556", | |
"4": "fbc06bb6-7f7a-45b7-91d6-47c1478a0013", | |
"5": "e4da1afb-4fe0-40d2-bdfa-023d352d6dae", | |
"6": "3487f5ec-bc75-4a0c-be82-4ebcabb823c2", | |
"7": "90d63bc8-525e-447c-88c9-929b5c42ad63", | |
"8": "f7982dc2-1602-4a85-b4a4-cf6e64e31712.lat", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"0": "title", // ID | |
"1": "a357ed51-2b3c-45ba-b42e-cc09ff725b16", // Your Name | |
"2": "241f2001-778f-4f91-a552-89486b4aaae2", // Rescuee Contact/Name | |
"3": "a06bd3fa-d4e4-47a4-9457-56632ea54556", // District | |
"4": "fbc06bb6-7f7a-45b7-91d6-47c1478a0013", // Category (Internal) | |
"5": "e4da1afb-4fe0-40d2-bdfa-023d352d6dae", // Status (Internal) | |
"6": "3487f5ec-bc75-4a0c-be82-4ebcabb823c2", // Other needs | |
"7": "90d63bc8-525e-447c-88c9-929b5c42ad63", // Date of reporting | |
"8": "f7982dc2-1602-4a85-b4a4-cf6e64e31712.lat", // latitude |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"label": "Situation (Internal)", | |
"key": "baaee4fa-e4cd-4518-909c-66b095ccf938" | |
}, | |
{ | |
"label": "District", | |
"key": "a06bd3fa-d4e4-47a4-9457-56632ea54556" | |
}, | |
{ |