function copyElements(src, dst, dstNdx, offset) {
    offset = offset || 0;
    var length = src.length;
    for (var ii = 0; ii < length; ++ii) {
      dst[dstNdx + ii] = src[ii] + offset;
    }
  }
Copy elements from one array to another

@param {Array|TypedArray} src source array
@param {Array|TypedArray} dst dest array
@param {number} dstNdx index in dest to copy src
@param {number} [offset] offset to add to copied values