Skip to main content

instance_inspect_is_custom

Function instance_inspect_is_custom 

Source
pub fn instance_inspect_is_custom(tag: &str) -> bool
Expand description

Whether node gives instances of tag a CUSTOM util.inspect — one that prints a curated view and nothing else. Such a class hides a subclass’s own properties and the [Tag] suffix: class S extends AbortController {} is S { signal: … }, and an EventTarget subclass prints {} even with own fields.