ticon-file-directory"> supports-preserve-symlinks-flag 30f7226d9a first commit 2 yıl önce tailwind-color-palette 30f7226d9a first commit 2 yıl önce tailwindcss 30f7226d9a first commit 2 yıl önce thenify 30f7226d9a first commit 2 yıl önce thenify-all 30f7226d9a first commit 2 yıl önce to-regex-range 30f7226d9a first commit 2 yıl önce tr46 30f7226d9a first commit 2 yıl önce ts-interface-checker 30f7226d9a first commit 2 yıl önce uglify-js 30f7226d9a first commit 2 yıl önce underscore 30f7226d9a first commit 2 yıl önce upper-case 30f7226d9a first commit 2 yıl önce util-deprecate 30f7226d9a first commit 2 yıl önce valid-data-url 30f7226d9a first commit 2 yıl önce web-resource-inliner 30f7226d9a first commit 2 yıl önce webidl-conversions 30f7226d9a first commit 2 yıl önce whatwg-url 30f7226d9a first commit 2 yıl önce wrap-ansi 30f7226d9a first commit 2 yıl önce wrappy 30f7226d9a first commit 2 yıl önce y18n 30f7226d9a first commit 2 yıl önce yallist 30f7226d9a first commit 2 yıl önce yaml 30f7226d9a first commit 2 yıl önce yargs 30f7226d9a first commit 2 yıl önce yargs-parser 30f7226d9a first commit 2 yıl önce .yarn-integrity 30f7226d9a first commit 2 yıl önce tmt/tiger_frontend - Gogs: Simplico Git Service

Sin descripción

golf 77628cf8bf first comm %!s(int64=3) %!d(string=hace) años
..
dist 77628cf8bf first comm %!s(int64=3) %!d(string=hace) años
src 77628cf8bf first comm %!s(int64=3) %!d(string=hace) años
LICENSE 77628cf8bf first comm %!s(int64=3) %!d(string=hace) años
README.md 77628cf8bf first comm %!s(int64=3) %!d(string=hace) años
package.json 77628cf8bf first comm %!s(int64=3) %!d(string=hace) años

README.md

@jridgewell/set-array

Like a Set, but provides the index of the key in the backing array

This is designed to allow synchronizing a second array with the contents of the backing array, like how in a sourcemap sourcesContent[i] is the source content associated with source[i], and there are never duplicates.

Installation

npm install @jridgewell/set-array

Usage

import { SetArray, get, put, pop } from '@jridgewell/set-array';

const sa = new SetArray();

let index = put(sa, 'first');
assert.strictEqual(index, 0);

index = put(sa, 'second');
assert.strictEqual(index, 1);

assert.deepEqual(sa.array, [ 'first', 'second' ]);

index = get(sa, 'first');
assert.strictEqual(index, 0);

pop(sa);
index = get(sa, 'second');
assert.strictEqual(index, undefined);
assert.deepEqual(sa.array, [ 'first' ]);