function slice(array, start, end) {
      var index = -1,
          length = array ? array.length : 0,
          endType = typeof end;

      if (end && endType != 'number' && isIterateeCall(array, start, end)) {
        start = 0;
        end = length;
      }
      start = start == null ? 0 : (+start || 0);
      if (start < 0) {
        start = -start > length ? 0 : (length + start);
      }
      end = (endType == 'undefined' || end > length) ? length : (+end || 0);
      if (end < 0) {
        end += length;
      }
      if (end && end == length && !start) {
        return baseSlice(array);
      }
      length = start > end ? 0 : (end - start);

      var result = Array(length);
      while (++index < length) {
        result[index] = array[index + start];
      }
      return result;
    }
Creates a slice of `array` from `start` up to, but not including, `end`.

**Note:** This function is used instead of `Array#slice` to support node
lists in IE < 9 and to ensure dense arrays are returned.

@static
@memberOf _
@category Array
@param {Array} array The array to slice.
@param {number} [start=0] The start position.
@param {number} [end=array.length] The end position.
@returns {Array} Returns the slice of `array`.