Non-enumerable Properties in Javascript
· ☕ 2 min read
When you define a prototype for an object you run the risk of counting that as an object property. Use non-enumerable to avoid doing that.
Consider this -
1 2 3 4 5 6 7 8 9 Object.prototype.colors = () => { return; }; let fruits = ["apple", "orange"]; console.