code: function createArrayOfSameType(srcArray, length) {
    const arraySrc = getArray(srcArray);
    const newArray = new arraySrc.constructor(length);
    let newArraySpec = newArray;
    // If it appears to have been augmented make new one augemented
    if (arraySrc.numComponents && arraySrc.numElements) {
      augmentTypedArray(newArray, arraySrc.numComponents);
    }
    // If it was a fullspec make new one a fullspec
    if (srcArray.data) {
      newArraySpec = {
        data: newArray,
      };
      helper.copyNamedProperties(arraySpecPropertyNames, srcArray, newArraySpec);
    }
    return newArraySpec;
  }
docs: Creates an array of the same time
  
  @param {(number[]|ArrayBufferView|module:twgl.FullArraySpec)} srcArray array who's type to copy
  @param {number} length size of new array
  @return {(number[]|ArrayBufferView|module:twgl.FullArraySpec)} array with same type as srcArray
  @private