I am seeking the ability to parse through an object and allocate each of its available attributes to a variable.
Within this scenario, there are four potential properties present in different objects - some containing all four while others may only have two.
My inquiry pertains to determining the existence of a specific property within the object. Is there a method akin to indexOf() for arrays that can be utilized for objects?