function first(iterable) {
  if (iterable && iterable.length > 0) {
    return iterable[0];
  }

  return undefined;
}
Returns the first element of an iterable object.

@param {array} iterable - must be an iterable object