¡@

Home 

2014/10/16 ¤W¤È 12:09:15

jquery Programming Glossary: sushi

How to find a value in a multidimensional object/array in Javascript?

http://stackoverflow.com/questions/5181493/how-to-find-a-value-in-a-multidimensional-object-array-in-javascript

an array Object 1 name bob dinner pizza 2 name john dinner sushi 3 name larry dinner hummus I want to be able to search the object.. array for where the key is dinner and see if it matches sushi . I know jQuery has .inArray but it doesn't seem to work on.. this var peoples name bob dinner pizza name john dinner sushi name larry dinner hummus Ignore what's below. Use the filter..

How to find a value in a multidimensional object/array in Javascript?

http://stackoverflow.com/questions/5181493/how-to-find-a-value-in-a-multidimensional-object-array-in-javascript

Javascript I have a multidimensional object it's basically an array Object 1 name bob dinner pizza 2 name john dinner sushi 3 name larry dinner hummus I want to be able to search the object array for where the key is dinner and see if it matches.. larry dinner hummus I want to be able to search the object array for where the key is dinner and see if it matches sushi . I know jQuery has .inArray but it doesn't seem to work on multidimensional arrays. Or maybe I'm wrong. indexOf also seems.. share improve this question If you have an object like this var peoples name bob dinner pizza name john dinner sushi name larry dinner hummus Ignore what's below. Use the filter method peoples.filter function person return person.dinner..