Socket
Socket
Sign inDemoInstall

@jridgewell/set-array

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.1.1

3

package.json
{
"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' ]);
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc