{"ScriptPreparationCode":"var data = [\r\n {\r\n \u0022_id\u0022: \u002260affa2283b0efedaea3b1c4\u0022,\r\n \u0022index\u0022: 0,\r\n \u0022guid\u0022: \u002231db5e6e-7e70-4875-8da6-cd8bb4af4983\u0022,\r\n \u0022isActive\u0022: true,\r\n \u0022balance\u0022: \u0022$2,186.30\u0022,\r\n \u0022picture\u0022: \u0022http://placehold.it/32x32\u0022,\r\n \u0022age\u0022: 20,\r\n \u0022eyeColor\u0022: \u0022green\u0022,\r\n \u0022name\u0022: \u0022Willa Suarez\u0022,\r\n \u0022gender\u0022: \u0022female\u0022,\r\n \u0022company\u0022: \u0022CAPSCREEN\u0022,\r\n \u0022email\u0022: \u0022willasuarez@capscreen.com\u0022,\r\n \u0022phone\u0022: \u0022\u002B1 (815) 416-2961\u0022,\r\n \u0022address\u0022: \u0022209 Woodhull Street, Weedville, Kansas, 1030\u0022,\r\n \u0022about\u0022: \u0022Aliqua eiusmod ipsum pariatur dolore pariatur consequat elit do elit labore nisi est consequat consectetur. Mollit commodo exercitation amet dolor nisi commodo velit Lorem laborum Lorem deserunt excepteur esse laborum. Consequat non est eiusmod aliquip. Est labore culpa et deserunt eu.\\r\\n\u0022,\r\n \u0022registered\u0022: \u00222015-01-19T05:50:47 \u002B05:00\u0022,\r\n \u0022latitude\u0022: 21.473397,\r\n \u0022longitude\u0022: -113.550715,\r\n \u0022tags\u0022: [\r\n \u0022aliquip\u0022,\r\n \u0022nulla\u0022,\r\n \u0022proident\u0022,\r\n \u0022ipsum\u0022,\r\n \u0022sit\u0022,\r\n \u0022elit\u0022,\r\n \u0022incididunt\u0022\r\n ],\r\n \u0022friends\u0022: [\r\n {\r\n \u0022id\u0022: 0,\r\n \u0022name\u0022: \u0022Tamika Mcmillan\u0022\r\n },\r\n {\r\n \u0022id\u0022: 1,\r\n \u0022name\u0022: \u0022Maribel Douglas\u0022\r\n },\r\n {\r\n \u0022id\u0022: 2,\r\n \u0022name\u0022: \u0022Karla Lott\u0022\r\n }\r\n ],\r\n \u0022greeting\u0022: \u0022Hello, Willa Suarez! You have 2 unread messages.\u0022,\r\n \u0022favoriteFruit\u0022: \u0022apple\u0022\r\n },\r\n {\r\n \u0022_id\u0022: \u002260affa2252d756a2e4af735a\u0022,\r\n \u0022index\u0022: 1,\r\n \u0022guid\u0022: \u00220cf14e81-714b-4279-a937-6145c55e85df\u0022,\r\n \u0022isActive\u0022: true,\r\n \u0022balance\u0022: \u0022$2,486.15\u0022,\r\n \u0022picture\u0022: \u0022http://placehold.it/32x32\u0022,\r\n \u0022age\u0022: 34,\r\n \u0022eyeColor\u0022: \u0022green\u0022,\r\n \u0022name\u0022: \u0022Effie Waters\u0022,\r\n \u0022gender\u0022: \u0022female\u0022,\r\n \u0022company\u0022: \u0022COMVEX\u0022,\r\n \u0022email\u0022: \u0022effiewaters@comvex.com\u0022,\r\n \u0022phone\u0022: \u0022\u002B1 (906) 432-3853\u0022,\r\n \u0022address\u0022: \u0022662 Marconi Place, Statenville, Kentucky, 7564\u0022,\r\n \u0022about\u0022: \u0022Ullamco nostrud dolor ea labore minim irure. Ullamco eiusmod voluptate irure fugiat enim. Lorem id aute enim ea duis ad eu anim cupidatat sint.\\r\\n\u0022,\r\n \u0022registered\u0022: \u00222020-11-02T09:42:50 \u002B05:00\u0022,\r\n \u0022latitude\u0022: 17.133879,\r\n \u0022longitude\u0022: 4.200852,\r\n \u0022tags\u0022: [\r\n \u0022nulla\u0022,\r\n \u0022et\u0022,\r\n \u0022adipisicing\u0022,\r\n \u0022nostrud\u0022,\r\n \u0022amet\u0022,\r\n \u0022ea\u0022,\r\n \u0022et\u0022\r\n ],\r\n \u0022friends\u0022: [\r\n {\r\n \u0022id\u0022: 0,\r\n \u0022name\u0022: \u0022Therese Mayo\u0022\r\n },\r\n {\r\n \u0022id\u0022: 1,\r\n \u0022name\u0022: \u0022Cross Chapman\u0022\r\n },\r\n {\r\n \u0022id\u0022: 2,\r\n \u0022name\u0022: \u0022Stacy Cotton\u0022\r\n }\r\n ],\r\n \u0022greeting\u0022: \u0022Hello, Effie Waters! You have 5 unread messages.\u0022,\r\n \u0022favoriteFruit\u0022: \u0022apple\u0022\r\n },\r\n {\r\n \u0022_id\u0022: \u002260affa22b6ee227a033a0bd0\u0022,\r\n \u0022index\u0022: 2,\r\n \u0022guid\u0022: \u002219aad48c-d293-46b4-9cd0-c0831bb37359\u0022,\r\n \u0022isActive\u0022: true,\r\n \u0022balance\u0022: \u0022$3,501.49\u0022,\r\n \u0022picture\u0022: \u0022http://placehold.it/32x32\u0022,\r\n \u0022age\u0022: 21,\r\n \u0022eyeColor\u0022: \u0022green\u0022,\r\n \u0022name\u0022: \u0022Laura Lawson\u0022,\r\n \u0022gender\u0022: \u0022female\u0022,\r\n \u0022company\u0022: \u0022NIPAZ\u0022,\r\n \u0022email\u0022: \u0022lauralawson@nipaz.com\u0022,\r\n \u0022phone\u0022: \u0022\u002B1 (826) 571-2542\u0022,\r\n \u0022address\u0022: \u0022790 Pulaski Street, Cochranville, Palau, 2071\u0022,\r\n \u0022about\u0022: \u0022Est cillum elit eiusmod exercitation reprehenderit enim. Ullamco proident elit incididunt cupidatat consectetur mollit. Anim eu sunt aute nisi commodo. Nulla tempor laboris voluptate sit consequat nisi in ipsum. Eu incididunt id ullamco sint fugiat pariatur exercitation Lorem qui occaecat esse sint aute in. Anim in esse consectetur elit tempor sint cillum ullamco labore. Velit et reprehenderit officia adipisicing fugiat ea incididunt sit adipisicing reprehenderit ullamco excepteur ea amet.\\r\\n\u0022,\r\n \u0022registered\u0022: \u00222014-12-11T01:14:20 \u002B05:00\u0022,\r\n \u0022latitude\u0022: 74.245409,\r\n \u0022longitude\u0022: -25.635153,\r\n \u0022tags\u0022: [\r\n \u0022anim\u0022,\r\n \u0022nostrud\u0022,\r\n \u0022amet\u0022,\r\n \u0022sit\u0022,\r\n \u0022incididunt\u0022,\r\n \u0022cillum\u0022,\r\n \u0022esse\u0022\r\n ],\r\n \u0022friends\u0022: [\r\n {\r\n \u0022id\u0022: 0,\r\n \u0022name\u0022: \u0022Wilda Holland\u0022\r\n },\r\n {\r\n \u0022id\u0022: 1,\r\n \u0022name\u0022: \u0022Burch Beck\u0022\r\n },\r\n {\r\n \u0022id\u0022: 2,\r\n \u0022name\u0022: \u0022Tanner Watson\u0022\r\n }\r\n ],\r\n \u0022greeting\u0022: \u0022Hello, Laura Lawson! You have 5 unread messages.\u0022,\r\n \u0022favoriteFruit\u0022: \u0022banana\u0022\r\n },\r\n {\r\n \u0022_id\u0022: \u002260affa229b7bfd65d269f620\u0022,\r\n \u0022index\u0022: 3,\r\n \u0022guid\u0022: \u00222ad65c49-2e9d-4898-9cef-ef3e5da368bf\u0022,\r\n \u0022isActive\u0022: true,\r\n \u0022balance\u0022: \u0022$3,247.93\u0022,\r\n \u0022picture\u0022: \u0022http://placehold.it/32x32\u0022,\r\n \u0022age\u0022: 36,\r\n \u0022eyeColor\u0022: \u0022brown\u0022,\r\n \u0022name\u0022: \u0022Kidd Keller\u0022,\r\n \u0022gender\u0022: \u0022male\u0022,\r\n \u0022company\u0022: \u0022STEELTAB\u0022,\r\n \u0022email\u0022: \u0022kiddkeller@steeltab.com\u0022,\r\n \u0022phone\u0022: \u0022\u002B1 (870) 410-2743\u0022,\r\n \u0022address\u0022: \u0022444 Junius Street, Orason, West Virginia, 4520\u0022,\r\n \u0022about\u0022: \u0022Quis aliqua commodo nisi et adipisicing labore labore aliquip nisi. Ex laboris velit officia labore laborum est. Enim quis culpa ea mollit Lorem eu est labore ut occaecat. Non voluptate cupidatat ullamco sunt commodo consequat laborum laboris veniam pariatur amet cupidatat ea eu. Officia qui pariatur labore magna occaecat officia enim.\\r\\n\u0022,\r\n \u0022registered\u0022: \u00222017-02-24T02:37:31 \u002B05:00\u0022,\r\n \u0022latitude\u0022: 19.8666,\r\n \u0022longitude\u0022: -5.043646,\r\n \u0022tags\u0022: [\r\n \u0022dolor\u0022,\r\n \u0022velit\u0022,\r\n \u0022excepteur\u0022,\r\n \u0022labore\u0022,\r\n \u0022sit\u0022,\r\n \u0022aliqua\u0022,\r\n \u0022dolore\u0022\r\n ],\r\n \u0022friends\u0022: [\r\n {\r\n \u0022id\u0022: 0,\r\n \u0022name\u0022: \u0022Kim Dominguez\u0022\r\n },\r\n {\r\n \u0022id\u0022: 1,\r\n \u0022name\u0022: \u0022Kemp Nixon\u0022\r\n },\r\n {\r\n \u0022id\u0022: 2,\r\n \u0022name\u0022: \u0022Sherrie Cross\u0022\r\n }\r\n ],\r\n \u0022greeting\u0022: \u0022Hello, Kidd Keller! You have 7 unread messages.\u0022,\r\n \u0022favoriteFruit\u0022: \u0022apple\u0022\r\n },\r\n {\r\n \u0022_id\u0022: \u002260affa2239e4cbf16aafafbb\u0022,\r\n \u0022index\u0022: 4,\r\n \u0022guid\u0022: \u0022258797fe-83b7-46ff-a8e1-48a4c9cb1dbc\u0022,\r\n \u0022isActive\u0022: true,\r\n \u0022balance\u0022: \u0022$3,046.32\u0022,\r\n \u0022picture\u0022: \u0022http://placehold.it/32x32\u0022,\r\n \u0022age\u0022: 28,\r\n \u0022eyeColor\u0022: \u0022green\u0022,\r\n \u0022name\u0022: \u0022Shelley Small\u0022,\r\n \u0022gender\u0022: \u0022female\u0022,\r\n \u0022company\u0022: \u0022ESCHOIR\u0022,\r\n \u0022email\u0022: \u0022shelleysmall@eschoir.com\u0022,\r\n \u0022phone\u0022: \u0022\u002B1 (930) 443-2133\u0022,\r\n \u0022address\u0022: \u0022795 Bragg Street, Welch, Marshall Islands, 6091\u0022,\r\n \u0022about\u0022: \u0022Ea ut adipisicing velit ex aliquip eiusmod qui. Tempor proident esse sit amet eu id ex esse sunt et culpa consectetur dolore veniam. Dolor irure consectetur ea occaecat anim. Fugiat incididunt anim velit reprehenderit officia. Est velit consectetur veniam incididunt ullamco in officia.\\r\\n\u0022,\r\n \u0022registered\u0022: \u00222016-02-20T10:29:19 \u002B05:00\u0022,\r\n \u0022latitude\u0022: -21.605153,\r\n \u0022longitude\u0022: -79.017989,\r\n \u0022tags\u0022: [\r\n \u0022labore\u0022,\r\n \u0022laboris\u0022,\r\n \u0022dolor\u0022,\r\n \u0022deserunt\u0022,\r\n \u0022incididunt\u0022,\r\n \u0022eu\u0022,\r\n \u0022anim\u0022\r\n ],\r\n \u0022friends\u0022: [\r\n {\r\n \u0022id\u0022: 0,\r\n \u0022name\u0022: \u0022Ilene Foley\u0022\r\n },\r\n {\r\n \u0022id\u0022: 1,\r\n \u0022name\u0022: \u0022Avis Bolton\u0022\r\n },\r\n {\r\n \u0022id\u0022: 2,\r\n \u0022name\u0022: \u0022Wagner Howard\u0022\r\n }\r\n ],\r\n \u0022greeting\u0022: \u0022Hello, Shelley Small! You have 2 unread messages.\u0022,\r\n \u0022favoriteFruit\u0022: \u0022apple\u0022\r\n },\r\n {\r\n \u0022_id\u0022: \u002260affa2207cd64ed6a0a1c57\u0022,\r\n \u0022index\u0022: 5,\r\n \u0022guid\u0022: \u00224dfc4423-6b24-4f0f-b5be-1ca28bfca3fe\u0022,\r\n \u0022isActive\u0022: false,\r\n \u0022balance\u0022: \u0022$2,729.88\u0022,\r\n \u0022picture\u0022: \u0022http://placehold.it/32x32\u0022,\r\n \u0022age\u0022: 30,\r\n \u0022eyeColor\u0022: \u0022brown\u0022,\r\n \u0022name\u0022: \u0022Lydia Hobbs\u0022,\r\n \u0022gender\u0022: \u0022female\u0022,\r\n \u0022company\u0022: \u0022PROGENEX\u0022,\r\n \u0022email\u0022: \u0022lydiahobbs@progenex.com\u0022,\r\n \u0022phone\u0022: \u0022\u002B1 (801) 592-3944\u0022,\r\n \u0022address\u0022: \u0022983 Vermont Street, Boonville, Wisconsin, 4666\u0022,\r\n \u0022about\u0022: \u0022Cupidatat ad excepteur duis nisi. Est sit sint ullamco non velit in adipisicing mollit est nostrud et non. Cupidatat esse est nostrud minim dolore pariatur consequat irure. Adipisicing irure sit nisi pariatur commodo est ad occaecat anim amet in laboris et. Aute culpa sunt eiusmod minim nisi consectetur eiusmod consectetur aute. Laborum occaecat deserunt consequat non exercitation nostrud pariatur fugiat elit deserunt. Duis eu consequat labore consequat Lorem ipsum nisi.\\r\\n\u0022,\r\n \u0022registered\u0022: \u00222018-08-03T04:17:23 \u002B04:00\u0022,\r\n \u0022latitude\u0022: -22.955688,\r\n \u0022longitude\u0022: 100.655838,\r\n \u0022tags\u0022: [\r\n \u0022nostrud\u0022,\r\n \u0022exercitation\u0022,\r\n \u0022dolore\u0022,\r\n \u0022eiusmod\u0022,\r\n \u0022ullamco\u0022,\r\n \u0022elit\u0022,\r\n \u0022exercitation\u0022\r\n ],\r\n \u0022friends\u0022: [\r\n {\r\n \u0022id\u0022: 0,\r\n \u0022name\u0022: \u0022Tia Slater\u0022\r\n },\r\n {\r\n \u0022id\u0022: 1,\r\n \u0022name\u0022: \u0022Kramer Hays\u0022\r\n },\r\n {\r\n \u0022id\u0022: 2,\r\n \u0022name\u0022: \u0022Graciela Chaney\u0022\r\n }\r\n ],\r\n \u0022greeting\u0022: \u0022Hello, Lydia Hobbs! You have 4 unread messages.\u0022,\r\n \u0022favoriteFruit\u0022: \u0022strawberry\u0022\r\n },\r\n {\r\n \u0022_id\u0022: \u002260affa220443474aacf11773\u0022,\r\n \u0022index\u0022: 6,\r\n \u0022guid\u0022: \u002292b6d59c-70cc-4ade-8814-aee38833cc77\u0022,\r\n \u0022isActive\u0022: false,\r\n \u0022balance\u0022: \u0022$1,439.52\u0022,\r\n \u0022picture\u0022: \u0022http://placehold.it/32x32\u0022,\r\n \u0022age\u0022: 38,\r\n \u0022eyeColor\u0022: \u0022brown\u0022,\r\n \u0022name\u0022: \u0022Hyde Mcconnell\u0022,\r\n \u0022gender\u0022: \u0022male\u0022,\r\n \u0022company\u0022: \u0022ZAGGLES\u0022,\r\n \u0022email\u0022: \u0022hydemcconnell@zaggles.com\u0022,\r\n \u0022phone\u0022: \u0022\u002B1 (966) 580-2054\u0022,\r\n \u0022address\u0022: \u0022454 Henry Street, Savannah, Oregon, 6667\u0022,\r\n \u0022about\u0022: \u0022Adipisicing mollit eu est culpa ut sunt ut. In ad velit adipisicing sint mollit aliquip ullamco officia ut velit sunt eu tempor. Occaecat enim officia elit dolore. Quis nostrud est eu ipsum veniam non eiusmod cillum ad. Officia officia non qui est laboris. Et mollit quis dolore quis magna qui laborum non occaecat dolore sit occaecat.\\r\\n\u0022,\r\n \u0022registered\u0022: \u00222014-07-11T01:03:57 \u002B04:00\u0022,\r\n \u0022latitude\u0022: 0.010282,\r\n \u0022longitude\u0022: -85.416006,\r\n \u0022tags\u0022: [\r\n \u0022culpa\u0022,\r\n \u0022sint\u0022,\r\n \u0022mollit\u0022,\r\n \u0022adipisicing\u0022,\r\n \u0022ut\u0022,\r\n \u0022eu\u0022,\r\n \u0022ut\u0022\r\n ],\r\n \u0022friends\u0022: [\r\n {\r\n \u0022id\u0022: 0,\r\n \u0022name\u0022: \u0022Nunez Camacho\u0022\r\n },\r\n {\r\n \u0022id\u0022: 1,\r\n \u0022name\u0022: \u0022Kimberly Gonzales\u0022\r\n },\r\n {\r\n \u0022id\u0022: 2,\r\n \u0022name\u0022: \u0022Gamble Hyde\u0022\r\n }\r\n ],\r\n \u0022greeting\u0022: \u0022Hello, Hyde Mcconnell! You have 6 unread messages.\u0022,\r\n \u0022favoriteFruit\u0022: \u0022banana\u0022\r\n }\r\n];\r\n\r\nvar rReduce = R.pipe( R.map( R.props( [\u0027index\u0027, \u0027name\u0027] ) ), R.fromPairs );","TestCases":[{"Name":"Ramda Reduce","Code":"rReduce(data);","IsDeferred":false},{"Name":"Native Reduce","Code":"data.reduce((acc, curr) =\u003E {\r\n const { index, ...rest } = curr;\r\n acc[index] = {\r\n ...rest,\r\n };\r\n return acc;\r\n}, {});","IsDeferred":false},{"Name":"Native Map \u002B Reduce","Code":"data\r\n .map(({ index, ...rest }) =\u003E ({ [index]: rest }))\r\n .reduce((acc, curr) =\u003E Object.assign(acc, curr), {});","IsDeferred":false}]}