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

      if (typeof start == 'undefined') {
        start = 0;
      } else if (start < 0) {
        start = nativeMax(length + start, 0);
      } else if (start > length) {
        start = length;
      }
      if (typeof end == 'undefined') {
        end = length;
      } else if (end < 0) {
        end = nativeMax(length + end, 0);
      } else if (end > length) {
        end = length;
      }
      length = end - start || 0;

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

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 Arrays
@param {Array} array The array to slice.
@param {number} [start=0] The start index.
@param {number} [end=array.length] The end index.
@returns {Array} Returns the new array.