Function isPropertyWritable

  • Check if property is writable in object or its prototype chain

    Type Parameters

    • T

    Parameters

    • object: T

      object to check

    • prop: keyof T

      property to check

    • allowWritable: boolean = true

      allow writable properties without setter

    • allowAny: boolean = false

      allow any property (even if it doesn't exist)

    Returns boolean

Generated using TypeDoc