Sha256: 135cb42922b80e96fbf921cc4e6262bcf9f35e23cb5b592f3c91ae11d2c4ee94
Contents?: true
Size: 507 Bytes
Versions: 300
Compression:
Stored size: 507 Bytes
Contents
var cloneArrayBuffer = require('./_cloneArrayBuffer'); /** * Creates a clone of `dataView`. * * @private * @param {Object} dataView The data view to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the cloned data view. */ function cloneDataView(dataView, isDeep) { var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); } module.exports = cloneDataView;
Version data entries
300 entries across 276 versions & 32 rubygems