first property

Length first

Implementation

Length get first {
  if (this.length > 0) {
    return JS('Length', '#[0]', this);
  }
  throw new StateError("No elements");
}