first,_.first

Function Description
First is a function that returns first child of an element.
Function prototype
_.first(element). It returns first child of @element. UPJSObject.first() returns first 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 first,_.first function.