PHP 7.4.33
Preview: index.js Size: 412 B
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/array-buffer-byte-length/index.js
'use strict';

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

Directory Contents

Dirs: 2 × Files: 9
Name Size Perms Modified Actions
.github DIR
- drwxr-xr-x 2025-03-28 11:04:36
Edit Download
test DIR
- drwxr-xr-x 2025-03-28 11:04:36
Edit Download
83 B lrw-r--r-- 2025-03-28 11:04:36
Edit Download
216 B lrw-r--r-- 2025-03-28 11:04:36
Edit Download
3.90 KB lrw-r--r-- 2025-03-28 11:04:36
Edit Download
171 B lrw-r--r-- 2025-03-28 11:04:36
Edit Download
412 B lrw-r--r-- 2025-03-28 11:04:36
Edit Download
1.04 KB lrw-r--r-- 2025-03-28 11:04:36
Edit Download
2.47 KB lrw-r--r-- 2025-03-28 11:04:36
Edit Download
1.93 KB lrw-r--r-- 2025-03-28 11:04:36
Edit Download
125 B lrw-r--r-- 2025-03-28 11:04:36
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).