last

  • function
 

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

  1. nodeList {Array<HTMLElement>}

    The nodeList to get the last element of.

Returns

{HTMLElement}

lastElement The last HTMLElement in the list.