Re:Public and private class fields
by Roboprog on Thursday December 13, 2018 @06:44PM
(#18677193)
Thanks. I suspect the internals of “===“ in this case could look for the presence of a closure data pointer on a Function or some such hack.
Anyway, I’d probably use an actual prototype on something (with “methods” and) hundreds of instances, but otherwise, I’m not too worried about just using closures and object literals.
Anyway, I’d probably use an actual prototype on something (with “methods” and) hundreds of instances, but otherwise, I’m not too worried about just using closures and object literals.