last
Return the last HTMLElement in a nodeList, if the last element is a nodeList, returns the last HTMLElement of the child list, etc.
nodeLists.last(nodeList)
Return the last HTMLElement in a nodeList, if the last element is a nodeList, returns the last HTMLElement of the child list, etc.
Parameters
-
nodeList
{Array<HTMLElement>}
The nodeList to get the last element of.
Returns
{HTMLElement}
lastElement The last HTMLElement
in the list.