code: function shift(arr) {
      var shifted = splice(arr, 0, 1);
      return {
          array: shifted.array,
          val: arr[0]
      };
  }
docs: Shift
  Shifts/removes first element in array.
  As this is a non-mutating method returns
  an object with new array and shifted value.
  
  @param arr the array to shift value from.