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