{"ScriptPreparationCode":"var agency = {\r\n \u0027sellerName\u0027: \u0027test\u0027 \r\n};\r\nvar agencyObj = {\r\n \u0027sellerName\u0027: \u0027abc\u0027 \r\n};","TestCases":[{"Name":"reduce","Code":"var agencyItems = Object.keys(agency).reduce((acc, key) =\u003E {\r\n const value = agencyObj?.[key]\r\n\r\n if (value) {\r\n acc.push({\r\n title: agency[key],\r\n value,\r\n })\r\n }\r\n return acc\r\n }, [])","IsDeferred":false},{"Name":"flatMap","Code":"var agencyItems = Object.keys(agency).flatMap((key) =\u003E {\r\n const value = agencyObj?.[key]\r\n\r\n return value ? { title: agency[key], value } : []\r\n })","IsDeferred":false}]}