function createArrayOfSameType(srcArray, length) {
    var arraySrc = getArray(srcArray);
    var newArray = new arraySrc.constructor(length);
    var 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,
      };
      utils.copyNamedProperties(arraySpecPropertyNames, srcArray, newArraySpec);
    }
    return newArraySpec;
  }
Creates an array of the same time

@param {(number[]|ArrayBuffer|module:twgl.FullArraySpec)} srcArray array who's type to copy
@param {number} length size of new array
@return {(number[]|ArrayBuffer|module:twgl.FullArraySpec)} array with same type as srcArray