SocialluxSociallux
Toggle navigation menu
Docs navigationv

Primitive

object.has

BETA

Short name: has

Version: 1.0.0

Check whether a plain object has a top-level own key.

Back to primitive library

Inputs

KeyTypeRequiredDescription
keystringtrueTop-level key to test.
objectobjecttrueObject to inspect.

Outputs

KeyTypeRequiredDescription
hasbooleanfalseTrue when object contains the key as own property.