Const
When set on an object or its prototype chain, dump calls this as a render function (with the object as this) instead of its default recursive rendering. When false this inhibits dump from rendering object properties.
this
false
dump
class Color { constructor(public r: number, public g: number, public b: number) {} [CUSTOM_DUMP]() { A(`#rgb(${this.r}, ${this.g}, ${this.b})`); }} Copy
class Color { constructor(public r: number, public g: number, public b: number) {} [CUSTOM_DUMP]() { A(`#rgb(${this.r}, ${this.g}, ${this.b})`); }}
When set on an object or its prototype chain, dump calls this as a render function (with the object as
this) instead of its default recursive rendering. Whenfalsethis inhibitsdumpfrom rendering object properties.