• Determine if the given object has a getter & setter accessor.

    Type Parameters

    • T extends object

      Type of data.

    • K extends string

      Accessor key.

    Parameters

    • object: T

      An object.

    • accessor: K

      Accessor to test.

    Returns object is T & Record<K, unknown>

    Whether the given object has the getter and setter for accessor.