xFirstChild

Type: function
Returns the zeroth (by index) object of the outer object's children.

Body

function(outer){
  if (outer === undefined || !('children' in outer)){
    return undefined;
  } else {
    return outer.children[0];
  }
}

Classpath

Children