sparse-array
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -27,3 +27,4 @@ 'use strict' | ||
if (pos === -1) { | ||
pos = this._setNextBit() | ||
pos = this._data.length | ||
this._setBit(index) | ||
} | ||
@@ -116,3 +117,3 @@ this._data[pos] = value | ||
_setBit (index, value) { | ||
_setBit (index) { | ||
const bytePos = this._bytePosFor(index, false) | ||
@@ -119,0 +120,0 @@ this._bitArrays[bytePos] |= (1 << (index - (bytePos * BITS_PER_BYTE))) |
{ | ||
"name": "sparse-array", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Sparse array implementation in JS with no dependencies", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
6980
230