Javascript – Using hasOwnProperty for nested object keys if key name is a number
I'm currently building a Pokémon application, therefor I'm accessing data from PokéAPI and will store specific data in a variable, such as name, id and type. Currently I'm facing issues to store the second type of a pokémon. Some of…