Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Tuple

Callable

  • Tuple<T>(...items: T): T
  • Type parameters

    • T: any[]

    Parameters

    • Rest ...items: T

    Returns T

Index

Type aliases

TupleFalsyFilter

TupleFalsyFilter<I>: TupleFilter<I, Falsy>

Type parameters

  • I: 0 | 1 | 2 | 3 | 4 | 5

TupleFilter

TupleFilter<I, NOT>: <A>(value: A) => value is Extract<[], A>

Type parameters

  • I: 0 | 1 | 2 | 3 | 4 | 5

  • NOT

Type declaration

    • <A>(value: A): value is Extract<[], A>
    • Type parameters

      • A: any[]

      Parameters

      • value: A

      Returns value is Extract<[], A>

TupleNullishFilter

TupleNullishFilter<I>: TupleFilter<I, undefined | null>

Type parameters

  • I: 0 | 1 | 2 | 3 | 4 | 5

Twice

Twice<T>: []

Type parameters

  • T

Variables

Const falsyFilters

falsyFilters: {} = Stream.range(6).toObject(index => Tuple(index, (value: any[]) => value[index]))

Type declaration

Const nullishFilters

nullishFilters: {} = Stream.range(6).toObject(index => Tuple(index, (value: any[]) => value[index] !== undefined && value[index] !== null))

Type declaration

Functions

filterFalsy

  • filterFalsy<I>(index: I): <A>(value: A) => value is Extract<[], A>
  • Type parameters

    • I: 0 | 1 | 2 | 3 | 4 | 5

    Parameters

    • index: I

    Returns <A>(value: A) => value is Extract<[], A>

      • <A>(value: A): value is Extract<[], A>
      • Type parameters

        • A: any[]

        Parameters

        • value: A

        Returns value is Extract<[], A>

filterNullish

  • filterNullish<I>(index: I): <A>(value: A) => value is Extract<[], A>
  • Type parameters

    • I: 0 | 1 | 2 | 3 | 4 | 5

    Parameters

    • index: I

    Returns <A>(value: A) => value is Extract<[], A>

      • <A>(value: A): value is Extract<[], A>
      • Type parameters

        • A: any[]

        Parameters

        • value: A

        Returns value is Extract<[], A>

is

  • is<T>(value: unknown): value is T
  • Type parameters

    • T: any[]

    Parameters

    • value: unknown

    Returns value is T

Generated using TypeDoc