Uncaught TypeError: {(intermediate value)}.map is not a function"
Actual code: const genreOptions = [{{ genreOptions | json_encode | raw }}].map((type , label) => ({value: type, label: label})); Debugging code: const genreOptions = { "Horror": "Korku", "Comedy": "Komedi\u0103 Filmi", "Action": "Aksiyon", "Drama": "Drama" }.map((type,label)=>({ value: type, label: label })); Im getting the following error from above code: Uncaught TypeError: {(intermediate value)(intermediate value)(intermediate value)(intermediate value)}.map… Read More Uncaught TypeError: {(intermediate value)}.map is not a function"