Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/earthstar/src/sync-fs/util.ts>zipByPath

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
function zipByPath
import { zipByPath } from "https://deno.land/x/earthstar@v10.0.0/src/sync-fs/util.ts";

Take two sets of items organised by share path and zip them up into a record of tuples organised by paths.

Type Parameters

TypeA
TypeB

Parameters

aRecord: Record<string, TypeA>
bRecord: Record<string, TypeB>

Returns

Record<string, [TypeA | null, TypeB | null]>