code: function pop(arr) {
      return {
          array: arr.slice(0, arr.length - 1),
          val: last(arr)
      };
  }
docs: NOTE: the following are immutable methods. 
  Pop
  Pops/removes last element in array.
  
  @param arr the array to pop value from.