I have a complex object with nested values. Values could be strings, arrays, arrays of objects or null
objects. Something like this:
{
foo:'a',
bar:'b',
otherthings : [{yep:'0',yuk:'yoyo0'},{yep:'1',yuk:'yoyo1'}],
foobar : 'yup',
value: null
}
What is the fastest way to check if a value (e.g. yoyo1
) exists somewhere in the object? Is there a Javascript built-in function?