Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

A specification and Javascript library for building online tools you can truly call your own.
Go to Latest
function zipByPath
import { zipByPath } from "https://deno.land/x/earthstar@v9.3.3/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]>