Primitive
object.has
BETAShort name: has
Version: 1.0.0
Check whether a plain object has a top-level own key.
Back to primitive libraryInputs
| Key | Type | Required | Description |
|---|---|---|---|
| key | string | true | Top-level key to test. |
| object | object | true | Object to inspect. |
Outputs
| Key | Type | Required | Description |
|---|---|---|---|
| has | boolean | false | True when object contains the key as own property. |