code: function range(n,type) {
    n = (typeof n !== 'undefined') ?  n : 0;
    if (!(Number.isInteger(n))) throw Error("Error in range: Value must be an integer");
    let array;
      
    if(type=='Uint8')  array = new Uint8Array(n);
    if(type=='Uint16') array = new Uint16Array(n);
    if(type=='Uint32') array = new Uint32Array(n);
    if(type=='Int8')  array = new Int8Array(n);
    if(type=='Int16') array = new Int16Array(n);
    if(type=='Int32') array = new Int32Array(n);
    if(type=='Float32')  array = new Float32Array(n);
    if((typeof type === 'undefined') || !array)array = new Array(n);
      
    for(let i=0;i<n;i++)array[i]=i;
    return array;
  }
docs: module.exports.quickSort = quickSort; module.exports.quickSortIndices = quickSortIndices;