A utility function to check if an object has a local property, providing a safe alternative to the built-in method.
This library provides a simple, reliable function to determine if an object has a property defined directly on itself, rather than inherited from its prototype chain. It serves as a safer alternative to the built-in Object.prototype.hasOwnProperty method, which can be overridden or cause errors when called on objects that don't inherit from Object.prototype.
Object.create(null) or those that have overridden the hasOwnProperty method.hasOwnProperty(object, name).The project emphasizes reliability and simplicity, offering a focused utility that addresses a common pitfall in JavaScript property checking without unnecessary complexity.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.