{"ScriptPreparationCode":"var arr1 = [];\r\nvar arr2 = [];\r\nvar obj1 = {};\r\nvar obj2 = {};\r\n\r\nfor (i = 0; i \u003C 10000; i\u002B\u002B) {\r\n var obj = {\r\n id: Math.random().toString(36).substr(2, 5),\r\n name: Math.random().toString(36).substr(2, 5)\r\n };\r\n obj1[obj.id] = obj;\r\n arr1.push(obj);\r\n}\r\n\r\nfor (i = 10000; i \u003C 20000; i\u002B\u002B) {\r\n var obj = {\r\n id: Math.random().toString(36).substr(2, 5),\r\n name: Math.random().toString(36).substr(2, 5),\r\n };\r\n obj2[obj.id] = obj;\r\n arr2.push(obj);\r\n}","TestCases":[{"Name":"Lodash unionBy two arrays","Code":"var result = _.unionBy(arr1, arr2, \u0027id\u0027);","IsDeferred":false},{"Name":"merge two objects","Code":"var result = { ...obj1, ...obj2 }","IsDeferred":false}]}