3 ms·
Yes, but you'll also want to use Object.defineProperty to ensure that the property is not enumerable. https://developer.mozilla.org/en-US/docs/Web/JavaScript/R
by braythwayt 11y ago
Yes, but you'll also want to use Object.defineProperty to ensure that the property is not enumerable.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Symbol tosses that in "for free."