I am working with a firebase database which is returning an 'array-like' object. Is there a way to check if a value exists on any field without looping through and checking each value.
My object looks like this:
{
0: 44,
1: 23,
2: 16,
3: 31
}
and I want to push another random number to the object but I need to check whether or not it exists first.