Skip to content

Add hasOwn object utility #54

@the-spyke

Description

@the-spyke
const obj = { x: 5 };
hasOwn(obj, "x"); // true
hasOwn(obj, "y"); // false

const inh = Object.create(obj);
hasOwn(inh, "x"); // false

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions