PathSeg first

Source

PathSeg get first {
  if (this.length > 0) {
    return getItem(0);
  }
  throw new StateError("No elements");
}