Object.prototype.hasOwnProperty

node v8.9.3
version: 3.0.0
endpointsharetweet
const object = { name: "Jean", age: 20 }; object.hasOwnProperty("name"); // true object.hasOwnProperty("gender"); // false
console.log("hi")
Loading…

no comments

    sign in to comment