MCPcopy Index your code
hub / github.com/apache/pouchdb / cloneBinaryObject

Function cloneBinaryObject

lib/index-browser.js:20–24  ·  view source on GitHub ↗

* @template {ArrayBuffer | Blob} T * @param {T} object * @returns {T}

(object)

Source from the content-addressed store, hash-verified

18 * @returns {T}
19 */
20function cloneBinaryObject(object) {
21 return object instanceof ArrayBuffer
22 ? object.slice(0)
23 : object.slice(0, object.size, object.type);
24}
25
26// most of this is borrowed from lodash.isPlainObject:
27// https://github.com/fis-components/lodash.isplainobject/

Callers 1

cloneFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…