The read-only detail property of the CustomEvent interface returns any data passed when initializing the event.
detail
MDN Reference
The read-only
detailproperty of the CustomEvent interface returns any data passed when initializing the event.MDN Reference