{"ScriptPreparationCode":"var MyObject = [\r\n {\r\n \u0022_id\u0022: \u002266e7eff9116f8e690a42def7\u0022,\r\n \u0022index\u0022: 0,\r\n \u0022guid\u0022: \u0022daad7d80-1097-44c6-b914-bab27c62a254\u0022,\r\n \u0022isActive\u0022: true,\r\n \u0022balance\u0022: \u0022$2,505.86\u0022,\r\n \u0022picture\u0022: \u0022http://placehold.it/32x32\u0022,\r\n \u0022age\u0022: 30,\r\n \u0022eyeColor\u0022: \u0022green\u0022,\r\n \u0022name\u0022: \u0022Browning Shields\u0022,\r\n \u0022gender\u0022: \u0022male\u0022,\r\n \u0022company\u0022: \u0022BUZZNESS\u0022,\r\n \u0022email\u0022: \u0022browningshields@buzzness.com\u0022,\r\n \u0022phone\u0022: \u0022\u002B1 (907) 513-2282\u0022,\r\n \u0022address\u0022: \u0022626 Seaview Court, Trexlertown, Ohio, 6495\u0022,\r\n \u0022about\u0022: \u0022Incididunt quis ea ipsum elit reprehenderit minim sunt. Do laboris minim voluptate mollit labore non ea amet ipsum sint culpa sunt sunt laboris. Id cillum amet laborum reprehenderit commodo reprehenderit in nulla proident. Voluptate non irure ex velit ex exercitation amet eiusmod magna nostrud do ea ut. Mollit duis ad ipsum Lorem ex enim in adipisicing exercitation ea. Lorem laborum magna est esse anim voluptate dolor aliquip voluptate voluptate duis commodo quis proident. Amet duis irure elit officia.\\r\\n\u0022,\r\n \u0022registered\u0022: \u00222021-11-01T04:00:26 -01:00\u0022,\r\n \u0022latitude\u0022: -84.115826,\r\n \u0022longitude\u0022: 125.358871,\r\n \u0022tags\u0022: [\r\n \u0022veniam\u0022,\r\n \u0022nostrud\u0022,\r\n \u0022eu\u0022,\r\n \u0022qui\u0022,\r\n \u0022eu\u0022,\r\n \u0022commodo\u0022,\r\n \u0022ullamco\u0022\r\n ],\r\n \u0022friends\u0022: [\r\n {\r\n \u0022id\u0022: 0,\r\n \u0022name\u0022: \u0022Dona Watts\u0022\r\n },\r\n {\r\n \u0022id\u0022: 1,\r\n \u0022name\u0022: \u0022Mae Cantu\u0022\r\n },\r\n {\r\n \u0022id\u0022: 2,\r\n \u0022name\u0022: \u0022Dillon Fry\u0022\r\n }\r\n ],\r\n \u0022greeting\u0022: \u0022Hello, Browning Shields! You have 10 unread messages.\u0022,\r\n \u0022favoriteFruit\u0022: \u0022banana\u0022\r\n },\r\n {\r\n \u0022_id\u0022: \u002266e7eff92b6ca402ad7ab8bd\u0022,\r\n \u0022index\u0022: 1,\r\n \u0022guid\u0022: \u00228b628d39-9fff-4d28-b4c5-35bc003a88cc\u0022,\r\n \u0022isActive\u0022: true,\r\n \u0022balance\u0022: \u0022$2,299.78\u0022,\r\n \u0022picture\u0022: \u0022http://placehold.it/32x32\u0022,\r\n \u0022age\u0022: 20,\r\n \u0022eyeColor\u0022: \u0022blue\u0022,\r\n \u0022name\u0022: \u0022Dunlap Hubbard\u0022,\r\n \u0022gender\u0022: \u0022male\u0022,\r\n \u0022company\u0022: \u0022IRACK\u0022,\r\n \u0022email\u0022: \u0022dunlaphubbard@irack.com\u0022,\r\n \u0022phone\u0022: \u0022\u002B1 (938) 440-3887\u0022,\r\n \u0022address\u0022: \u0022514 Fulton Street, Oasis, Guam, 2302\u0022,\r\n \u0022about\u0022: \u0022Aute veniam irure est laboris consequat nostrud tempor culpa aliqua ex in exercitation sint ipsum. Ipsum culpa magna est laboris consequat ipsum consequat ullamco fugiat elit. In voluptate ex fugiat consequat in ipsum proident reprehenderit nostrud irure ea nulla esse ex. Velit adipisicing cupidatat cillum aute sint occaecat. Amet elit elit voluptate occaecat elit in adipisicing minim id veniam. Do occaecat laborum dolore pariatur enim deserunt ex reprehenderit in irure.\\r\\n\u0022,\r\n \u0022registered\u0022: \u00222021-10-18T03:34:17 -02:00\u0022,\r\n \u0022latitude\u0022: 26.597269,\r\n \u0022longitude\u0022: -93.956704,\r\n \u0022tags\u0022: [\r\n \u0022nulla\u0022,\r\n \u0022cillum\u0022,\r\n \u0022reprehenderit\u0022,\r\n \u0022Lorem\u0022,\r\n \u0022laboris\u0022,\r\n \u0022consequat\u0022,\r\n \u0022non\u0022\r\n ],\r\n \u0022friends\u0022: [\r\n {\r\n \u0022id\u0022: 0,\r\n \u0022name\u0022: \u0022Mccoy Kent\u0022\r\n },\r\n {\r\n \u0022id\u0022: 1,\r\n \u0022name\u0022: \u0022Josefina Carlson\u0022\r\n },\r\n {\r\n \u0022id\u0022: 2,\r\n \u0022name\u0022: \u0022Angeline Soto\u0022\r\n }\r\n ],\r\n \u0022greeting\u0022: \u0022Hello, Dunlap Hubbard! You have 6 unread messages.\u0022,\r\n \u0022favoriteFruit\u0022: \u0022strawberry\u0022\r\n },\r\n {\r\n \u0022_id\u0022: \u002266e7eff9de2dc4dd45378184\u0022,\r\n \u0022index\u0022: 2,\r\n \u0022guid\u0022: \u0022ac90092e-c051-4aeb-9475-f8e0dd72d796\u0022,\r\n \u0022isActive\u0022: false,\r\n \u0022balance\u0022: \u0022$1,097.89\u0022,\r\n \u0022picture\u0022: \u0022http://placehold.it/32x32\u0022,\r\n \u0022age\u0022: 34,\r\n \u0022eyeColor\u0022: \u0022brown\u0022,\r\n \u0022name\u0022: \u0022Sharpe Salazar\u0022,\r\n \u0022gender\u0022: \u0022male\u0022,\r\n \u0022company\u0022: \u0022EXOSWITCH\u0022,\r\n \u0022email\u0022: \u0022sharpesalazar@exoswitch.com\u0022,\r\n \u0022phone\u0022: \u0022\u002B1 (999) 510-2988\u0022,\r\n \u0022address\u0022: \u0022425 Etna Street, Noblestown, Nevada, 1156\u0022,\r\n \u0022about\u0022: \u0022Nisi ex mollit do anim reprehenderit quis ad. Labore culpa occaecat Lorem elit labore. Qui aute tempor duis excepteur ea enim est eu voluptate non proident cupidatat enim nisi. Commodo ut non ullamco fugiat qui elit aliqua ipsum cillum occaecat amet. Excepteur nulla dolor sint culpa laborum cupidatat non sunt.\\r\\n\u0022,\r\n \u0022registered\u0022: \u00222017-01-24T11:40:29 -01:00\u0022,\r\n \u0022latitude\u0022: -84.888941,\r\n \u0022longitude\u0022: 148.555312,\r\n \u0022tags\u0022: [\r\n \u0022nostrud\u0022,\r\n \u0022fugiat\u0022,\r\n \u0022aliqua\u0022,\r\n \u0022officia\u0022,\r\n \u0022culpa\u0022,\r\n \u0022cupidatat\u0022,\r\n \u0022excepteur\u0022\r\n ],\r\n \u0022friends\u0022: [\r\n {\r\n \u0022id\u0022: 0,\r\n \u0022name\u0022: \u0022Dorthy Cameron\u0022\r\n },\r\n {\r\n \u0022id\u0022: 1,\r\n \u0022name\u0022: \u0022Geneva Adkins\u0022\r\n },\r\n {\r\n \u0022id\u0022: 2,\r\n \u0022name\u0022: \u0022Chambers Mcneil\u0022\r\n }\r\n ],\r\n \u0022greeting\u0022: \u0022Hello, Sharpe Salazar! You have 8 unread messages.\u0022,\r\n \u0022favoriteFruit\u0022: \u0022apple\u0022\r\n },\r\n {\r\n \u0022_id\u0022: \u002266e7eff9f81fd8fa54937393\u0022,\r\n \u0022index\u0022: 3,\r\n \u0022guid\u0022: \u0022e11a6b70-4b2c-4403-a325-f0962b93d8d3\u0022,\r\n \u0022isActive\u0022: true,\r\n \u0022balance\u0022: \u0022$3,010.86\u0022,\r\n \u0022picture\u0022: \u0022http://placehold.it/32x32\u0022,\r\n \u0022age\u0022: 31,\r\n \u0022eyeColor\u0022: \u0022green\u0022,\r\n \u0022name\u0022: \u0022Roberta Hayden\u0022,\r\n \u0022gender\u0022: \u0022female\u0022,\r\n \u0022company\u0022: \u0022DIGIFAD\u0022,\r\n \u0022email\u0022: \u0022robertahayden@digifad.com\u0022,\r\n \u0022phone\u0022: \u0022\u002B1 (910) 446-3209\u0022,\r\n \u0022address\u0022: \u0022874 Leonora Court, Omar, Nebraska, 1799\u0022,\r\n \u0022about\u0022: \u0022Ex quis do sunt duis eu aliqua deserunt. Sint cillum amet cupidatat aliqua sunt amet enim. Ut laboris ipsum mollit exercitation velit consequat commodo amet amet mollit. Cupidatat pariatur Lorem Lorem fugiat enim do. Cupidatat ut aliquip dolore consectetur eiusmod in sint. Ad labore culpa consequat non exercitation dolore ut sit qui sunt nostrud voluptate. Nisi eiusmod eu commodo in irure cupidatat culpa cupidatat aliquip et consequat.\\r\\n\u0022,\r\n \u0022registered\u0022: \u00222020-09-18T04:47:32 -02:00\u0022,\r\n \u0022latitude\u0022: 16.103599,\r\n \u0022longitude\u0022: -26.524586,\r\n \u0022tags\u0022: [\r\n \u0022aliquip\u0022,\r\n \u0022anim\u0022,\r\n \u0022laboris\u0022,\r\n \u0022commodo\u0022,\r\n \u0022ipsum\u0022,\r\n \u0022Lorem\u0022,\r\n \u0022nisi\u0022\r\n ],\r\n \u0022friends\u0022: [\r\n {\r\n \u0022id\u0022: 0,\r\n \u0022name\u0022: \u0022Lela Holder\u0022\r\n },\r\n {\r\n \u0022id\u0022: 1,\r\n \u0022name\u0022: \u0022Robinson Carney\u0022\r\n },\r\n {\r\n \u0022id\u0022: 2,\r\n \u0022name\u0022: \u0022Mcintosh Clayton\u0022\r\n }\r\n ],\r\n \u0022greeting\u0022: \u0022Hello, Roberta Hayden! You have 2 unread messages.\u0022,\r\n \u0022favoriteFruit\u0022: \u0022banana\u0022\r\n },\r\n {\r\n \u0022_id\u0022: \u002266e7eff9833dea3a5ca1d935\u0022,\r\n \u0022index\u0022: 4,\r\n \u0022guid\u0022: \u00228633a0f8-51c7-4019-bb15-d9399b4de8c0\u0022,\r\n \u0022isActive\u0022: true,\r\n \u0022balance\u0022: \u0022$3,574.84\u0022,\r\n \u0022picture\u0022: \u0022http://placehold.it/32x32\u0022,\r\n \u0022age\u0022: 24,\r\n \u0022eyeColor\u0022: \u0022green\u0022,\r\n \u0022name\u0022: \u0022Fields Mcpherson\u0022,\r\n \u0022gender\u0022: \u0022male\u0022,\r\n \u0022company\u0022: \u0022HAIRPORT\u0022,\r\n \u0022email\u0022: \u0022fieldsmcpherson@hairport.com\u0022,\r\n \u0022phone\u0022: \u0022\u002B1 (822) 569-2216\u0022,\r\n \u0022address\u0022: \u0022326 Chestnut Avenue, Singer, New Jersey, 3427\u0022,\r\n \u0022about\u0022: \u0022Quis anim aliqua ullamco duis. Reprehenderit mollit nulla mollit officia ullamco sunt. Eu sunt proident commodo non. Non dolore proident culpa anim nostrud occaecat magna aute qui eiusmod sunt proident. Pariatur incididunt ipsum cillum incididunt proident minim reprehenderit officia.\\r\\n\u0022,\r\n \u0022registered\u0022: \u00222018-09-02T09:23:44 -02:00\u0022,\r\n \u0022latitude\u0022: 52.577334,\r\n \u0022longitude\u0022: -41.082569,\r\n \u0022tags\u0022: [\r\n \u0022laboris\u0022,\r\n \u0022ea\u0022,\r\n \u0022cillum\u0022,\r\n \u0022quis\u0022,\r\n \u0022cillum\u0022,\r\n \u0022aliquip\u0022,\r\n \u0022consectetur\u0022\r\n ],\r\n \u0022friends\u0022: [\r\n {\r\n \u0022id\u0022: 0,\r\n \u0022name\u0022: \u0022Santos Higgins\u0022\r\n },\r\n {\r\n \u0022id\u0022: 1,\r\n \u0022name\u0022: \u0022Bauer Russo\u0022\r\n },\r\n {\r\n \u0022id\u0022: 2,\r\n \u0022name\u0022: \u0022Drake Dickerson\u0022\r\n }\r\n ],\r\n \u0022greeting\u0022: \u0022Hello, Fields Mcpherson! You have 4 unread messages.\u0022,\r\n \u0022favoriteFruit\u0022: \u0022apple\u0022\r\n }\r\n];\r\n\r\nvar myCopy = null;","TestCases":[{"Name":"Lodash cloneDeep","Code":"myCopy = _.cloneDeep(MyObject);","IsDeferred":false},{"Name":"Lodash clone","Code":"myCopy = _.clone(MyObject);","IsDeferred":false},{"Name":"CloneVanilla","Code":"function clone(obj) {\r\n const clone = Object.create(Object.getPrototypeOf(obj));\r\n\r\n Object.getOwnPropertyNames(obj).forEach(key =\u003E {\r\n Object.defineProperty(clone, key, Object.getOwnPropertyDescriptor(obj, key));\r\n });\r\n\r\n return clone;\r\n}\r\n\r\nmyCopy = clone(MyObject);","IsDeferred":false},{"Name":"CloneObject","Code":"function clone(obj) {\r\n let result = {};\r\n\r\n\tresult = JSON.parse(JSON.stringify(obj));\r\n\r\n\treturn result;\r\n}\r\n\r\nmyCopy = clone(MyObject);","IsDeferred":false}]}