composedPath() Event Method in JavaScript
The composedPath() method is used to return array of objects containing elements in event flow in correct execution order.
Syntax:-
Its syntax is:- event.composedPath()
Return:-
Its return is:- array of HTML elements