const myObject = { push: function () {} }
const myArray = [1, 2, 3]
console.log(myObject.hasOwnProperty("push"))
console.log("push" in myObject)
console.log(myArray.__proto__.hasOwnProperty("push"))
console.log("push" in myArray)
const myObject = { push: function () {} }
const myArray = [1, 2, 3]
console.log(myObject.hasOwnProperty("push"))
console.log("push" in myObject)
console.log(myArray.__proto__.hasOwnProperty("push"))
console.log("push" in myArray)