{"ScriptPreparationCode":"var users = [\r\n { \u0027name\u0027: \u0027barney\u0027, \u0027age\u0027: 36 },\r\n { \u0027name\u0027: \u0027pebbles\u0027, \u0027age\u0027: 5 }\r\n];\r\n\r\nvar newUsers = [\r\n { \u0027name\u0027: \u0027fred\u0027, \u0027age\u0027: 40 },\r\n { \u0027name\u0027: \u0027barney\u0027, \u0027age\u0027: 36 },\r\n { \u0027name\u0027: \u0027pebbles\u0027, \u0027age\u0027: 2 }\r\n];\r\n\r\nfor(let i = 0; i \u003C 2000; i\u002B\u002B) {\r\n var newUser = { \u0027name\u0027: \u0027user_\u0027 \u002B i, \u0027age\u0027: Math.floor(Math.random() * i) };\r\n newUsers.push(newUser);\r\n}","TestCases":[{"Name":"unionWith","Code":"const unionUsers1 = _.unionWith(newUsers, users, _.isEqual);","IsDeferred":false},{"Name":"unionBy","Code":"const unionUsers2 = _.unionBy(newUsers, users, \u0027name\u0027);","IsDeferred":false}]}