* @template {ArrayBuffer | Blob} T * @param {T} object * @returns {T}
(object)
| 18 | * @returns {T} |
| 19 | */ |
| 20 | function 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/ |
no outgoing calls
no test coverage detected
searching dependent graphs…