Function set

  • Adds a property to an object, or modifies the existing value.



    • attr: PropertyKey

      The name or Symbol of the property to be defined or modified.

    • obj: any

      The container object.

    • value: any

      The value associated with the property

    • Optional writable: boolean = false

      If true the value may be changed later. Defaults to false.

    • Optional enumerable: boolean = false

      If true this property shows up during enumeration of the properties in the object. Defaults to false.

    Returns any

Generated using TypeDoc