• Adds one or more properties to an object, and/or modifies attributes of existing properties.

    Type Parameters

    • T

    Parameters

    • o: T

      Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.

    • properties: PropertyDescriptorMap & ThisType<any>

      JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.

    Returns T