Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/node_modules.10/array-buffer-byte-length/
Upload File :
Current File : /home/infinitibizsol/.trash/node_modules.10/array-buffer-byte-length/index.js

'use strict';

var callBound = require('call-bind/callBound');
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

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists