Options
All
  • Public
  • Public/Protected
  • All
Menu

Functions

Functions

deepProxy

  • deepProxy<T>(obj?: T, defaultValue?: any): any

包装对象,使其成为可以任意深度调用而不会出现 undefined 调用的问题 注意: 该函数不能进行递归调用({@link JSON.stringfy}),一定会造成堆栈溢出的问题(RangeError: Maximum call stack size exceeded)

Type parameters

  • T: object

Parameters

  • obj: T = {} as any Default value

    任意一个 Object 对象

  • defaultValue: any = new String() Default value

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.