Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ObjectConstructor

Index

Methods

assign

  • assign<T, U>(target: T, source: U): T & U
  • assign<T, U, V>(target: T, source1: U, source2: V): T & U & V
  • assign<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W
  • assign(target: object, ...sources: any[]): any
  • Copy the values of all of the enumerable own properties from one or more source objects to a target object. Returns the target object.

    Type parameters

    • T

    • U

    Parameters

    • target: T

      The target object to copy to.

    • source: U

      The source object from which to copy properties.

    Returns T & U

  • Copy the values of all of the enumerable own properties from one or more source objects to a target object. Returns the target object.

    Type parameters

    • T

    • U

    • V

    Parameters

    • target: T

      The target object to copy to.

    • source1: U

      The first source object from which to copy properties.

    • source2: V

      The second source object from which to copy properties.

    Returns T & U & V

  • Copy the values of all of the enumerable own properties from one or more source objects to a target object. Returns the target object.

    Type parameters

    • T

    • U

    • V

    • W

    Parameters

    • target: T

      The target object to copy to.

    • source1: U

      The first source object from which to copy properties.

    • source2: V

      The second source object from which to copy properties.

    • source3: W

      The third source object from which to copy properties.

    Returns T & U & V & W

  • Copy the values of all of the enumerable own properties from one or more source objects to a target object. Returns the target object.

    Parameters

    • target: object

      The target object to copy to.

    • Rest ...sources: any[]

      One or more source objects from which to copy properties

    Returns any

getOwnPropertySymbols

  • getOwnPropertySymbols(o: any): symbol[]
  • Returns an array of all symbol properties found directly on object o.

    Parameters

    • o: any

      Object to retrieve the symbols from.

    Returns symbol[]

is

  • is(value1: any, value2: any): boolean
  • Returns true if the values are the same value, false otherwise.

    Parameters

    • value1: any

      The first value.

    • value2: any

      The second value.

    Returns boolean

keys

  • keys(o: __type): string[]
  • Returns the names of the enumerable string properties and methods of an object.

    Parameters

    • o: __type

      Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.

    Returns string[]

setPrototypeOf

  • setPrototypeOf(o: any, proto: object | null): any
  • Sets the prototype of a specified object o to object proto or null. Returns the object o.

    Parameters

    • o: any

      The object to change its prototype.

    • proto: object | null

      The value of the new prototype or null.

    Returns any

Generated using TypeDoc