@jridgewell/set-array
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "@jridgewell/set-array", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Like a Set, but provides the index of the `key` in the backing array", | ||
@@ -14,2 +14,3 @@ "keywords": [], | ||
".": { | ||
"types": "./dist/types/set-array.d.ts", | ||
"browser": "./dist/set-array.umd.js", | ||
@@ -16,0 +17,0 @@ "require": "./dist/set-array.umd.js", |
@@ -18,3 +18,3 @@ # @jridgewell/set-array | ||
```js | ||
import { SetArray, get, put } from '@jridgewell/set-array'; | ||
import { SetArray, get, put, pop } from '@jridgewell/set-array'; | ||
@@ -33,2 +33,7 @@ const sa = new SetArray(); | ||
assert.strictEqual(index, 0); | ||
pop(sa); | ||
index = get(sa, 'second'); | ||
assert.strictEqual(index, undefined); | ||
assert.deepEqual(sa.array, [ 'first' ]); | ||
``` |
13777
38