Buckets:
| ; | |
| var callBound = require('call-bound'); | |
| var $byteLength = callBound('ArrayBuffer.prototype.byteLength', true); | |
| var isArrayBuffer = require('is-array-buffer'); | |
| /** @type {import('.')} */ | |
| module.exports = function byteLength(ab) { | |
| if (!isArrayBuffer(ab)) { | |
| return NaN; | |
| } | |
| return $byteLength ? $byteLength(ab) : ab.byteLength; | |
| }; // in node < 0.11, byteLength is an own nonconfigurable property | |
Xet Storage Details
- Size:
- 412 Bytes
- Xet hash:
- 1ab4b5e9ea76253a846a77a2c206723933343394db46212c423adc7f47cdaade
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.