Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/earthstar/src/formats/util.ts>getFormatIntersection

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

Given an array of format names, and an array of IFormat, returns an array of IFormat restricted to those with matching names.

Parameters

formatNames: string[]
formats: FormatsArg<F>