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

x/eitherway/lib/core/option.ts>Options.areSome

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

Type predicate - use this to check if all values in an array are Some<T>

Parameters

opts: ReadonlyArray<Option<T>>

Returns

opts is Some<T>[]