Lessons from opensource: Use Object.defineProperty to create an unwritable object's property.
These lessons are picked from next.js open source code. In this article, you will learn how to create an unwritable property using Object.defineProperty.
Object.defineProperty
Object.defineProperty() is used to add a new property directly to an objec...
ramunarasinga.hashnode.dev2 min read