code: function reorientVertices(arrays, matrix) {
    Object.keys(arrays).forEach(function(name) {
      const array = arrays[name];
      if (name.indexOf("pos") >= 0) {
        reorientPositions(array, matrix);
      } else if (name.indexOf("tan") >= 0 || name.indexOf("binorm") >= 0) {
        reorientDirections(array, matrix);
      } else if (name.indexOf("norm") >= 0) {
        reorientNormals(array, matrix);
      }
    });
    return arrays;
  }
docs: @typedef {(number[]|TypedArray)} NativeArrayOrTypedArray
   
  Reorients arrays by the given matrix. Assumes arrays have
  names that contains 'pos' could be reoriented as positions,
  'binorm' or 'tan' as directions, and 'norm' as normals.
  
  @param {Object.<string, NativeArrayOrTypedArray>} arrays The vertices to reorient
  @param {module:twgl/m4.Mat4} matrix matrix to reorient by.
  @return {Object.<string, NativeArrayOrTypedArray>} same arrays that were passed in.
  @memberOf module:twgl/primitives