last,_.last

Function Description
Last is a function that returns last child of an element.
Function prototype
_.last(element). It returns last child of @element. UPJSObject.last() returns last child of the UPJSObject.
Function parameters
@element - dom element
Sample HTML DIV element is given to try UPJS function.
Orange DIV
Apple DIV
  • apple 1
  • apple 2
Code area to try out last,_.last function.