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

x/eitherway/lib/core/option.ts>Option.id

Yet Another Option and Result Implementation - providing safe abstractions for fallible flows inspired by F# and Rust
Latest
function Option.id
import { Option } from "https://deno.land/x/eitherway@0.10.0/lib/core/option.ts";
const { id } = Option;

Use this to return the provided instance of Option<T> Mostly usefull for flattening or en lieu of a no-op

Parameters

opt: Readonly<Option<T>> | Option<T>