arraybuffer.slice
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -5,3 +5,3 @@ /** | ||
* | ||
* @api private | ||
* @api public | ||
*/ | ||
@@ -16,7 +16,7 @@ | ||
if (start < 0) { start += bytes; } | ||
if (start < 0) { start += bytes; } | ||
if (end < 0) { end += bytes; } | ||
if (end > bytes) { end = bytes; } | ||
if (start >= bytes || start >= end || bytes == 0) { | ||
if (start >= bytes || start >= end || bytes === 0) { | ||
return new ArrayBuffer(0); | ||
@@ -23,0 +23,0 @@ } |
{ | ||
"name": "arraybuffer.slice", | ||
"description": "Exports a function for slicing ArrayBuffers (no polyfilling)", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"homepage": "https://github.com/rase-/arraybuffer.slice", | ||
@@ -6,0 +6,0 @@ "dependencies": {}, |
8970