I have defined this structure:
var game_list = {
1: {name:'Vampires hunter', description:'The best vampires game in the world'},
2: {name:'Christmas vampires', description:'The best vampires game in the world'},
3: {name:'Fruit hunter', description:'The best vampires game in the world'},
4: {name:'The fruitis', description:'The best vampires game in the world'},
5: {name:'james bond', description:'The best vampires game in the world'},
6: {name:'Vampires hunter', description:'The best vampires game in the world'},
};
What I need to do (with plain js) is to create a function that find a string into that structure (the user can use small or caps), the func will have 2 parameters the array itself and the string to find.
Any help will be really appreciated.