I'm using AJAX to retrieve data via php. The resulting object available to Jquery looks like this:
Object {1234: "Martin", 4567: "Alf", 8512: "Symon"}
using the following I can get the key:
if ('4567' in staff)
console.log('found')
How would I check if Alf
exists ?
I've tried inArray, indexOf and various other examples, but I've not managed to get this working.
Thanks