Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

157 B
Raw Blame
import { Option } from "effect";

export const optionFromTOrFirst = (p: string | string[] | undefined) =>
	Option.fromNullable(Array.isArray(p) ? p[0] : p);