{"ScriptPreparationCode":null,"TestCases":[{"Name":"for...of","Code":"const userCity = \u0022sultanpur\u0022;\r\nconst userState = \u0022uttar pradesh\u0022;\r\nconst userCountry = \u0022india\u0022;\r\n\r\nconst values = [{\r\n city: \u0022pune\u0022,\r\n state: \u0022maharashtra\u0022,\r\n country: \u0022india\u0022\r\n },\r\n {\r\n city: \u0022mumbai\u0022,\r\n state: \u0022maharashtra\u0022,\r\n country: \u0022india\u0022\r\n },\r\n {\r\n city: \u0022sultanpur\u0022,\r\n state: \u0022uttar pradesh\u0022,\r\n country: \u0022india\u0022\r\n },\r\n];\r\n\r\nfor (const {\r\n city,\r\n state,\r\n country\r\n } of values) {\r\n if (userCity === city \u0026\u0026 userState === state \u0026\u0026 userCountry === country) {\r\n return true;\r\n }\r\n}","IsDeferred":false},{"Name":"find","Code":"const userCity = \u0022sultanpur\u0022;\r\nconst userState = \u0022uttar pradesh\u0022;\r\nconst userCountry = \u0022india\u0022;\r\n\r\nconst values = [{\r\n city: \u0022pune\u0022,\r\n state: \u0022maharashtra\u0022,\r\n country: \u0022india\u0022\r\n },\r\n {\r\n city: \u0022mumbai\u0022,\r\n state: \u0022maharashtra\u0022,\r\n country: \u0022india\u0022\r\n },\r\n {\r\n city: \u0022sultanpur\u0022,\r\n state: \u0022uttar pradesh\u0022,\r\n country: \u0022india\u0022\r\n },\r\n];\r\n\r\nvalues.find(({\r\n city,\r\n state,\r\n country\r\n}) =\u003E {\r\n return userCity === city \u0026\u0026 userState === state \u0026\u0026 userCountry === country;\r\n});","IsDeferred":false}]}