Latitude34
asked on
Javascript hasOwnProperty usage
I've seen hasOwnProperty used as:
I was wondering how this worked and what this if statement was checking since I thought "hasOwnProperty" needed to be followed by a variable inside parantheses.
Thanks in advance
if(elem[x].hasOwnProperty){
....
}
I was wondering how this worked and what this if statement was checking since I thought "hasOwnProperty" needed to be followed by a variable inside parantheses.
Thanks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
this doesn't seem to be valid JS