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

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

      var result = Array(length);
      while (++index < length) {
        result[index] = array[start + index];
      }
      return result;
    }
function slice(array, start, end) {
      var index = -1,
          length = array ? array.length : 0;

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

      var result = Array(length);
      while (++index < length) {
        result[index] = array[start + index];
      }
      return result;
    }
function slice ( array , start , end ) { var index = - 1 , length = array ? array . length : 0 ; start = typeof start == 'undefined' ? 0 : ( + start || 0 ) ; if ( start < 0 ) { start = nativeMax ( length + start , 0 ) ; } else if ( start > length ) { start = length ; } end = typeof end == 'undefined' ? length : ( + end || 0 ) ; if ( end < 0 ) { end = nativeMax ( length + end , 0 ) ; } else if ( end > length ) { end = length ; } length = start > end ? 0 : ( end - start ) ; 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 slice of `array`.
Slices array from the start index up to but not including the end index .