Package Exports
- sparse-array
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sparse-array) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
sparse-array
Sparse array implementation in JS with no dependencies
Install
$ npm install sparse-array --save
Use
const SparseArray = require('sparse-array')
const arr = new SparseArray()
const index = 0
arr.set(index, 'value')
arr.get(index) // 'value'
arr.unset(index)
arr.get(index) // undefined
License
ISC