Problems with .hasOwnProperty
Hello ![]()
I have a problem with a JavaScript method : hasOwnProperty.
I want to test this property and ESTK don't work correctly.
My little code :
//------------
alert(1)
if(Array.prototype.hasOwnProperty("push")){
alert("hello)
}
alert(2)
//------------
Normally, I have 3 alerts (1, "hello" and 2) but ESTK send me 2 alerts only (1 and 2).
ESTK send me false for condition if.
I share with you a Youtube video : hasOwnProperty - YouTube
I tried on development console and Google send me 3 alerts (1, "hello", 2).
Sometimes, ESTK send me true for condition only if I changed argument "push" to "pop" or "push" to "join" before, for example.
Can you help me for this problem, thank you.
