Thomas Rafferty
04/07/2025, 11:30 AMwhen()
appears to belong to Chrome's implementation of EventTarget
, which is common to all elements.
document.createElement("span") instanceof EventTarget
new EventTarget().when // ƒ when() { [native code] }
You can browse an object's properties and prototypes with console.dir(...)
Dave Merrill
04/07/2025, 2:09 PM