Function hasOwn

  • Checks if value has the specified key as its own property based on Object.prototype.hasOwnProperty result.

    Parameters

    Returns boolean

    Since

    1.0.0

    Example

    hasOwn({ a: 2 }, "a");
    // => true