{"ScriptPreparationCode":"var PromosArray = [\r\n {\r\n type: \u0022regular\u0022,\r\n display: \u0022$123.00\u0022\r\n },\r\n {\r\n type: \u0022markdown\u0022,\r\n display: \u0022$100.00\u0022\r\n },\r\n {\r\n type: \u0022promo\u0022,\r\n display: \u0022$80.00\u0022\r\n }\r\n];\r\n\r\nfunction testArrayIteration() {\r\n var items = [];\r\n var i;\r\n\r\n for (i = 0; i \u003C PromosArray.length; i\u002B\u002B) {\r\n items.push(PromosArray[i].type);\r\n }\r\n\r\n return items;\r\n \r\n}\r\n\r\nfunction testArrayMap() {\r\n return PromosArray.map(function (promo) {\r\n return promo.type;\r\n });\r\n}\r\n\r\nfunction testUnderscoreMap() {\r\n return underscore.map(PromosArray, function (promo) {\r\n return promo.type;\r\n });\r\n}\r\n\r\nfunction testLodashMap() {\r\n return lodash.map(PromosArray, function (promo) {\r\n return promo.type;\r\n });\r\n}\r\n","TestCases":[{"Name":"testArrayIteration","Code":"testArrayIteration();","IsDeferred":false},{"Name":"testArrayMap","Code":"testArrayMap();","IsDeferred":false},{"Name":"testUnderscoreMap","Code":"testUnderscoreMap();","IsDeferred":false},{"Name":"testLodashMap","Code":"testLodashMap();","IsDeferred":false}]}