{"ScriptPreparationCode":" var data = [\r\n {\r\n \u0022collectionOrder\u0022: {\r\n \u0022customer_full_address\u0022: \u0022Marmoleria 306, 20 de Noviembre, 15300, Venustiano Carranza Ciudad de M\u00E9xico\u0022,\r\n \u0022customer_full_name\u0022: \u0022Ivan Arturo Segura Ramirez\u0022,\r\n \u0022customer_mobile_number\u0022: \u00225511223344\u0022,\r\n \u0022id\u0022: 1,\r\n \u0022latitude\u0022: 19.45027,\r\n \u0022longitude\u0022: -99.10759,\r\n \u0022priority\u0022: 0,\r\n \u0022status\u0022: \u0022pendant\u0022,\r\n },\r\n \u0022orders\u0022: [\r\n {\r\n \u0022alternative_tracking_number\u0022: \u0022ART456789\u0022,\r\n \u0022cod_amount\u0022: null,\r\n \u0022customer_address_reference\u0022: null,\r\n \u0022customer_city\u0022: \u0022Ciudad de M\u00E9xico\u0022,\r\n \u0022customer_collection_id\u0022: 1,\r\n \u0022customer_country\u0022: \u0022M\u00E9xico\u0022,\r\n \u0022customer_email\u0022: \u0022arturo@bigsmart.mx\u0022,\r\n \u0022customer_external_number\u0022: \u0022306\u0022,\r\n \u0022customer_first_name\u0022: \u0022Ivan Arturo\u0022,\r\n \u0022customer_internal_number\u0022: null,\r\n \u0022customer_last_name\u0022: \u0022Segura Ramirez\u0022,\r\n \u0022customer_mobile_number\u0022: \u00225511223344\u0022,\r\n \u0022customer_municipality\u0022: \u0022Venustiano Carranza\u0022,\r\n \u0022customer_phone_number\u0022: null,\r\n \u0022customer_postcode\u0022: \u002215300\u0022,\r\n \u0022customer_settlement\u0022: \u002220 de Noviembre\u0022,\r\n \u0022customer_state\u0022: \u0022Ciudad de M\u00E9xico\u0022,\r\n \u0022customer_street\u0022: \u0022Marmoleria\u0022,\r\n \u0022delivery_deadline_date\u0022: \u00222021-05-19 00:00:00\u0022,\r\n \u0022delivery_range\u0022: null,\r\n \u0022delivery_verification\u0022: 0,\r\n \u0022estimated_delivery_date\u0022: \u00222021-05-19 00:00:00\u0022,\r\n \u0022id\u0022: 268438,\r\n \u0022latitude\u0022: 19.45027,\r\n \u0022longitude\u0022: -99.10759,\r\n \u0022priority\u0022: null,\r\n \u0022purchase_order_number\u0022: \u0022456789\u0022,\r\n \u0022status\u0022: \u0022pendant\u0022,\r\n \u0022tracking_number\u0022: \u00226928948347520311\u0022,\r\n \u0022verification_code\u0022: \u0022735237\u0022,\r\n \u0022warning\u0022: \u0022no\u0022,\r\n },\r\n {\r\n \u0022alternative_tracking_number\u0022: \u0022ART778899\u0022,\r\n \u0022cod_amount\u0022: null,\r\n \u0022customer_address_reference\u0022: null,\r\n \u0022customer_city\u0022: \u0022Ciudad de M\u00E9xico\u0022,\r\n \u0022customer_collection_id\u0022: 1,\r\n \u0022customer_country\u0022: \u0022M\u00E9xico\u0022,\r\n \u0022customer_email\u0022: \u0022arturo@bigsmart.mx\u0022,\r\n \u0022customer_external_number\u0022: \u0022306\u0022,\r\n \u0022customer_first_name\u0022: \u0022Ivan Arturo\u0022,\r\n \u0022customer_internal_number\u0022: null,\r\n \u0022customer_last_name\u0022: \u0022Segura Ramirez\u0022,\r\n \u0022customer_mobile_number\u0022: \u00225527216833\u0022,\r\n \u0022customer_municipality\u0022: \u0022Venustiano Carranza\u0022,\r\n \u0022customer_phone_number\u0022: null,\r\n \u0022customer_postcode\u0022: \u002215300\u0022,\r\n \u0022customer_settlement\u0022: \u002220 de Noviembre\u0022,\r\n \u0022customer_state\u0022: \u0022Ciudad de M\u00E9xico\u0022,\r\n \u0022customer_street\u0022: \u0022Marmoleria\u0022,\r\n \u0022delivery_deadline_date\u0022: \u00222021-05-19 00:00:00\u0022,\r\n \u0022delivery_range\u0022: null,\r\n \u0022delivery_verification\u0022: 0,\r\n \u0022estimated_delivery_date\u0022: \u00222021-05-19 00:00:00\u0022,\r\n \u0022id\u0022: 268444,\r\n \u0022latitude\u0022: 19.45027,\r\n \u0022longitude\u0022: -99.10759,\r\n \u0022priority\u0022: null,\r\n \u0022purchase_order_number\u0022: \u0022778899\u0022,\r\n \u0022status\u0022: \u0022pendant\u0022,\r\n \u0022tracking_number\u0022: \u00224080568021863712\u0022,\r\n \u0022verification_code\u0022: \u0022064642\u0022,\r\n \u0022warning\u0022: \u0022no\u0022,\r\n },\r\n ],\r\n \u0022priority\u0022: 0,\r\n \u0022status\u0022: \u0022pendant\u0022,\r\n },\r\n {\r\n \u0022alternative_tracking_number\u0022: null,\r\n \u0022cod_amount\u0022: null,\r\n \u0022customer_address_reference\u0022: \u0022Lope de Vega 409, Polanco, Polanco V Secc \u0022,\r\n \u0022customer_city\u0022: \u0022Ciudad de M\u00E9xico\u0022,\r\n \u0022customer_collection_id\u0022: null,\r\n \u0022customer_country\u0022: \u0022M\u00E9xico\u0022,\r\n \u0022customer_email\u0022: \u0022eduardo@bigsmart.mx\u0022,\r\n \u0022customer_external_number\u0022: \u0022409\u0022,\r\n \u0022customer_first_name\u0022: \u0022Test 9\u0022,\r\n \u0022customer_internal_number\u0022: \u0022\u0022,\r\n \u0022customer_last_name\u0022: \u0022Test 9\u0022,\r\n \u0022customer_mobile_number\u0022: \u00225555555555\u0022,\r\n \u0022customer_municipality\u0022: \u0022Miguel Hidalgo\u0022,\r\n \u0022customer_phone_number\u0022: \u0022\u0022,\r\n \u0022customer_postcode\u0022: \u002211560\u0022,\r\n \u0022customer_settlement\u0022: \u0022Polanco V Secci\u00F3n\u0022,\r\n \u0022customer_state\u0022: \u0022Ciudad de M\u00E9xico\u0022,\r\n \u0022customer_street\u0022: \u0022Lope de Vega\u0022,\r\n \u0022delivery_deadline_date\u0022: \u00222020-12-01 00:00:00\u0022,\r\n \u0022delivery_range\u0022: 200,\r\n \u0022delivery_verification\u0022: 0,\r\n \u0022estimated_delivery_date\u0022: \u00222020-12-01 00:00:00\u0022,\r\n \u0022id\u0022: 265373,\r\n \u0022latitude\u0022: 19.4310806,\r\n \u0022longitude\u0022: -99.1874431,\r\n \u0022priority\u0022: null,\r\n \u0022purchase_order_number\u0022: \u00220000000009\u0022,\r\n \u0022status\u0022: \u0022on_route\u0022,\r\n \u0022tracking_number\u0022: \u00220055243900475396\u0022,\r\n \u0022verification_code\u0022: \u0022765524\u0022,\r\n \u0022warning\u0022: \u0022no\u0022,\r\n },\r\n {\r\n \u0022alternative_tracking_number\u0022: null,\r\n \u0022cod_amount\u0022: null,\r\n \u0022customer_address_reference\u0022: \u0022\u0022,\r\n \u0022customer_city\u0022: \u0022Ciudad de M\u00E9xico\u0022,\r\n \u0022customer_collection_id\u0022: null,\r\n \u0022customer_country\u0022: \u0022M\u00E9xico\u0022,\r\n \u0022customer_email\u0022: \u0022prangu@hotmail.com\u0022,\r\n \u0022customer_external_number\u0022: \u00221037\u0022,\r\n \u0022customer_first_name\u0022: \u0022JOSE ANGEL\u0022,\r\n \u0022customer_internal_number\u0022: \u0022\u0022,\r\n \u0022customer_last_name\u0022: \u0022GUTIERREZ CASTRO\u0022,\r\n \u0022customer_mobile_number\u0022: \u00223338146300\u0022,\r\n \u0022customer_municipality\u0022: \u0022Benito Ju\u00E1rez\u0022,\r\n \u0022customer_phone_number\u0022: \u0022\u0022,\r\n \u0022customer_postcode\u0022: \u002203610\u0022,\r\n \u0022customer_settlement\u0022: \u0022Am\u00E9ricas Unidas\u0022,\r\n \u0022customer_state\u0022: \u0022Ciudad de M\u00E9xico\u0022,\r\n \u0022customer_street\u0022: \u0022CALZADA DE TLALPAN\u0022,\r\n \u0022delivery_deadline_date\u0022: \u00222021-05-05 00:00:00\u0022,\r\n \u0022delivery_range\u0022: 300,\r\n \u0022delivery_verification\u0022: 0,\r\n \u0022estimated_delivery_date\u0022: \u00222021-05-05 00:00:00\u0022,\r\n \u0022id\u0022: 267895,\r\n \u0022latitude\u0022: 19.38098,\r\n \u0022longitude\u0022: -99.14025,\r\n \u0022priority\u0022: null,\r\n \u0022purchase_order_number\u0022: \u0022PR128\u0022,\r\n \u0022status\u0022: \u0022pendant\u0022,\r\n \u0022tracking_number\u0022: \u00226746555273433466\u0022,\r\n \u0022verification_code\u0022: \u0022936641\u0022,\r\n \u0022warning\u0022: \u0022no\u0022,\r\n }\r\n ];\r\n\r\n function groupBy(xs, key) {\r\n return xs.reduce(function(rv, x) {\r\n (rv[x[key]] = rv[x[key]] || []).push(x);\r\n return rv;\r\n }, {});\r\n };","TestCases":[{"Name":"Underscore","Code":"var result = _.groupBy(data, \u0027status\u0027);","IsDeferred":false},{"Name":"Native","Code":"var result = groupBy(data, \u0027status\u0027);","IsDeferred":false}]}