JS: Set.prototype.constructor
New in ES2015.
set_obj.constructor
→ value is the function object Set
.
console.log ( Set.prototype.constructor === Set ); // true
console.log ( (new Set()).constructor === Set ); // true
[see JS: Property Key “constructor”]
Reference
ECMAScript 2015 §Keyed Collection#sec-set.prototype.constructor
Set Topic
If you have a question, put $5 at patreon and message me.