plainfp - v0.1.0
    Preparing search index...

    Function all

    • Collect an array of Options into a single Option of an array. Resolves to some([...]) if every input is some; short-circuits to none on the first none encountered.

      Type Parameters

      • T

      Parameters

      Returns OptionType<T[]>

      const parts = all([fromNullable(user.first), fromNullable(user.last)])
      // some(["Alice", "Smith"]) or none if either field is null/undefined