lib/array.js
function slice (start, end) {
  var data

  if (end) {
    debug('slicing array from %d to %d', start, end)
    data = this.buffer.slice(start*this.constructor.BYTES_PER_ELEMENT, end*this.constructor.BYTES_PER_ELEMENT)
  } else {
    debug('slicing array from %d', start)
    data = this.buffer.slice(start*this.constructor.BYTES_PER_ELEMENT)
  }

  return new this.constructor(data)
}
function slice (start, end) {
  var data

  if (end) {
    debug('slicing array from %d to %d', start, end)
    data = this.buffer.slice(start*this.constructor.BYTES_PER_ELEMENT, end*this.constructor.BYTES_PER_ELEMENT)
  } else {
    debug('slicing array from %d', start)
    data = this.buffer.slice(start*this.constructor.BYTES_PER_ELEMENT)
  }

  return new this.constructor(data)
}
function slice ( start , end ) { var data if ( end ) { debug ( 'slicing array from %d to %d' , start , end ) data = this . buffer . slice ( start * this . constructor . BYTES_PER_ELEMENT , end * this . constructor . BYTES_PER_ELEMENT ) } else { debug ( 'slicing array from %d' , start ) data = this . buffer . slice ( start * this . constructor . BYTES_PER_ELEMENT ) } return new this . constructor ( data ) }
The "slice" implementation.
The slice implementation .