sparse-array
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -47,2 +47,3 @@ 'use strict' | ||
get (index) { | ||
this._sortData() | ||
const pos = this._internalPositionFor(index, true) | ||
@@ -52,3 +53,2 @@ if (pos === -1) { | ||
} | ||
this._sortData() | ||
return this._data[pos][1] | ||
@@ -55,0 +55,0 @@ } |
{ | ||
"name": "sparse-array", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Sparse array implementation in JS with no dependencies", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |