Marketplace móvil para negocios locales mexicanos. Estructura inicial: - apps/backend (NestJS API) - apps/frontend (React Web) - apps/mobile (Expo/React Native) - apps/mcp-server (Claude MCP Server) - apps/whatsapp-service (WhatsApp Business API) - database/ (PostgreSQL DDL) - docs/ (Documentación) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
31 lines
731 B
Markdown
31 lines
731 B
Markdown
# has-own-prop [](https://travis-ci.org/sindresorhus/has-own-prop)
|
|
|
|
> A safer `.hasOwnProperty()`
|
|
|
|
Shortcut for `Object.prototype.hasOwnProperty.call(object, property)`.
|
|
|
|
You shouldn't use `.hasOwnProperty()` as it won't exist on [objects created with `Object.create(null)`](https://stackoverflow.com/a/12017703/64949) or it can have been overridden.
|
|
|
|
|
|
## Install
|
|
|
|
```
|
|
$ npm install has-own-prop
|
|
```
|
|
|
|
|
|
## Usage
|
|
|
|
```js
|
|
const hasOwnProp = require('has-own-prop');
|
|
|
|
const object = Object.create(null);
|
|
object.unicorn = true;
|
|
|
|
object.hasOwnProperty('unicorn');
|
|
//=> 'TypeError: undefined is not a function'
|
|
|
|
hasOwnProp(object, 'unicorn');
|
|
//=> true
|
|
```
|