Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.

License

NotificationsYou must be signed in to change notification settings

inspect-js/array-buffer-byte-length

github actionscoverageLicenseDownloads

npm badge

Get the byte length of an ArrayBuffer, even in engines without a.byteLength method.

Example

constassert=require('assert');constbyteLength=require('array-buffer-byte-length');assert.equal(byteLength([]),NaN,'an array is not an ArrayBuffer, yields NaN');assert.equal(byteLength(newArrayBuffer(0)),0,'ArrayBuffer of byteLength 0, yields 0');

Tests

Simply clone the repo,npm install, and runnpm test

About

Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks


[8]ページ先頭

©2009-2025 Movatter.jp