{"ScriptPreparationCode":"var testArray = [{\r\n description: \u0027Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.\u0027,\r\n testNumber: 123456789,\r\n testBoolean: true,\r\n testObject: {\r\n testString: \u0027test string\u0027,\r\n testNumber: 12345\r\n },\r\n testArray: [{\r\n myName: \u0027test name\u0027,\r\n myNumber: 123245\r\n }]\r\n},{\r\n description: \u0027Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.Random description.\u0027,\r\n testNumber: 123456789,\r\n testBoolean: true,\r\n testObject: {\r\n testString: \u0027test string\u0027,\r\n testNumber: 12345\r\n },\r\n testArray: [{\r\n myName: \u0027test name\u0027,\r\n myNumber: 123245\r\n }]\r\n}];\r\n\r\nvar testCopy = null;\r\n\r\nvar deepClone = function(obj) {\r\n var out;\r\n if (Array.isArray(obj)) {\r\n out = [];\r\n for (var index = 0; index \u003C obj.length; \u002B\u002Bindex) {\r\n let subArray = obj[index];\r\n out.push((subArray === null) ? subArray : (subArray instanceof Date) ? new Date(subArray.valueOf()) : (typeof subArray === \u0027object\u0027) ? deepClone(subArray) : subArray);\r\n }\r\n } else {\r\n out = {};\r\n for (var key in obj) {\r\n var subObject = obj[key];\r\n out[key] = subObject === null ? subObject : subObject instanceof Date ? new Date(subObject.valueOf()) : (typeof subObject === \u0027object\u0027) ? deepClone(subObject) : subObject;\r\n \r\n \r\n }\r\n }\r\n return out;\r\n};","TestCases":[{"Name":"lodash","Code":"testCopy = _.cloneDeep(testArray);","IsDeferred":false},{"Name":"json","Code":"testCopy = JSON.parse(JSON.stringify(testArray));","IsDeferred":false}]}