JavaScript: Object.prototype.propertyIsEnumerable

By Xah Lee. Date: . Last updated: .
obj.propertyIsEnumerable(key)
Return true if key is a own key and Enumerable. Else, false.
console.log({ "p": 4 }.propertyIsEnumerable("p"));
BUY
ΣJS
JavaScript in Depth