lib/array.js
function setter (index, value) {
  debug('setting array[%d]', index)
  var size = this.constructor.BYTES_PER_ELEMENT
  var baseType = this.constructor.type
  var offset = size * index
  var end = offset + size
  var buffer = this.buffer
  if (buffer.length < end) {
    debug('reinterpreting buffer from %d to %d', buffer.length, end)
    buffer = _ref.reinterpret(buffer, end)
  }
  // TODO: DRY with getter()

  _ref.set(buffer, offset, value, baseType)
  return value
}
function setter (index, value) {
  debug('setting array[%d]', index)
  var size = this.constructor.BYTES_PER_ELEMENT
  var baseType = this.constructor.type
  var offset = size * index
  var end = offset + size
  var buffer = this.buffer
  if (buffer.length < end) {
    debug('reinterpreting buffer from %d to %d', buffer.length, end)
    buffer = _ref.reinterpret(buffer, end)
  }
  // TODO: DRY with getter()

  _ref.set(buffer, offset, value, baseType)
  return value
}
function setter ( index , value ) { debug ( 'setting array[%d]' , index ) var size = this . constructor . BYTES_PER_ELEMENT var baseType = this . constructor . type var offset = size * index var end = offset + size var buffer = this . buffer if ( buffer . length < end ) { debug ( 'reinterpreting buffer from %d to %d' , buffer . length , end ) buffer = _ref . reinterpret ( buffer , end ) } // TODO: DRY with getter() _ref . set ( buffer , offset , value , baseType ) return value }
The "setter" implementation for  the "array-index" interface.
The setter implementation for the array - index interface .