{"ScriptPreparationCode":null,"TestCases":[{"Name":"reduce with mapped assign","Code":" parts.reduce((result, { type, value }) =\u003E {\r\n switch (type) {\r\n case \u0027currency\u0027:\r\n result.currencySign = value;\r\n break;\r\n case \u0027decimal\u0027:\r\n result.decimalSeparator = value;\r\n break;\r\n case \u0027group\u0027:\r\n result.thousandSeparator = value;\r\n break;\r\n default:\r\n break;\r\n }\r\n return result;\r\n }, {});","IsDeferred":false},{"Name":"reduce with mapper","Code":" parts.reduce((result, { type, value }) =\u003E {\r\n if (mapper[type]) {\r\n result[mapper[type]] = value;\r\n }\r\n return result;\r\n }, {});","IsDeferred":false}]}