Options
All
  • Public
  • Public/Protected
  • All
Menu

Functions

Functions

assign

  • assign<T>(target: T | null | undefined, ...sources: Array<any | null | undefined>): any

合并多个对象的属性

  1. 该合并的方式为浅层合并,只会合并一层的对象
  2. 默认忽略值为 undefined/null 的属性

Type parameters

  • T: object

Parameters

  • target: T | null | undefined

    覆盖的对象上

  • ...sources: Array<any | null | undefined> Rest

    任意数量的对象

Returns any

合并后的对象

  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.