{"ScriptPreparationCode":"window.address1 = [{ childrenIndex: 0 }, { toggleIndex: 1 }, { instanceIndex: 2 }, { childrenIndex: 0 }, { toggleIndex: 1 }, { instanceIndex: 2 }, { childrenIndex: 0 }, { toggleIndex: 1 }, { instanceIndex: 2 }, { childrenIndex: 0 }, { toggleIndex: 1 }, { instanceIndex: 2 }, { childrenIndex: 0 }, { toggleIndex: 1 }, { instanceIndex: 2 }];\r\nwindow.address2 = [{ childrenIndex: 1 }, { toggleIndex: 1 }, { instanceIndex: 2 }, { childrenIndex: 0 }, { toggleIndex: 1 }, { instanceIndex: 2 }, { childrenIndex: 0 }, { toggleIndex: 1 }, { instanceIndex: 2 }, { childrenIndex: 0 }, { toggleIndex: 1 }, { instanceIndex: 2 }, { childrenIndex: 0 }, { toggleIndex: 1 }, { instanceIndex: 2 }];\r\n\r\nwindow.serializeAddressJSON = (address) =\u003E JSON.stringify(address);\r\nwindow.serializeAddressReduce = (address) =\u003E\r\n\taddress.reduce((serialized, point) =\u003E {\r\n\t\tconst { childrenIndex, toggleIndex, instanceIndex } = point;\r\n\r\n\t\tlet pointCode;\r\n\t\tif (childrenIndex !== undefined) {\r\n\t\t\tpointCode = \u0060c${childrenIndex}\u0060;\r\n\t\t}\r\n\t\tif (toggleIndex !== undefined) {\r\n\t\t\tpointCode = \u0060t${toggleIndex}\u0060;\r\n\t\t}\r\n\t\tif (instanceIndex !== undefined) {\r\n\t\t\tpointCode = \u0060i${instanceIndex}\u0060;\r\n\t\t}\r\n\r\n\t\treturn \u0060${serialized}${pointCode}\u0060;\r\n\t}, \u0027\u0027);","TestCases":[{"Name":"JSON serialize","Code":"serializeAddressJSON(window.address1, window.address2)","IsDeferred":false},{"Name":"Reduce serialize","Code":"serializeAddressReduce(window.address1, window.address2)","IsDeferred":false}]}