Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • FeelVector

Implements

Index

Constructors

constructor

  • new FeelVector(array: readonly [Look<unknown, never>, unknown][], index: {}): FeelVector
  • Parameters

    • array: readonly [Look<unknown, never>, unknown][]
    • index: {}
      • [name: string]: number | undefined

    Returns FeelVector

Properties

Readonly array

array: readonly [Look<unknown, never>, unknown][]

Readonly index

index: {}

Type declaration

  • [name: string]: number | undefined

Accessors

size

  • get size(): number
  • Returns number

Methods

Protected copy

  • copy(array: readonly [Look<unknown, never>, unknown][], index?: {}): FeelVector
  • Parameters

    • array: readonly [Look<unknown, never>, unknown][]
    • Optional index: {}
      • [name: string]: number | undefined

    Returns FeelVector

debug

  • debug(output: Output<unknown>): void
  • Parameters

    Returns void

equals

  • equals(that: unknown): boolean
  • Parameters

    • that: unknown

    Returns boolean

forEach

  • forEach<R>(callback: <T>(value: T, look: Look<T, never>) => void | R): undefined | R
  • forEach<R, S>(callback: <T>(value: T, look: Look<T, never>) => void | R, thisArg: S): undefined | R
  • Type parameters

    • R

    Parameters

    • callback: <T>(value: T, look: Look<T, never>) => void | R
        • <T>(value: T, look: Look<T, never>): void | R
        • Type parameters

          • T

          Parameters

          • value: T
          • look: Look<T, never>

          Returns void | R

    Returns undefined | R

  • Type parameters

    • R

    • S

    Parameters

    • callback: <T>(value: T, look: Look<T, never>) => void | R
        • <T>(value: T, look: Look<T, never>): void | R
        • Type parameters

          • T

          Parameters

          • value: T
          • look: Look<T, never>

          Returns void | R

    • thisArg: S

    Returns undefined | R

get

  • get<T>(look: Look<T, any>): undefined | T
  • get(name: string): unknown
  • get(index: number): unknown
  • Type parameters

    • T

    Parameters

    • look: Look<T, any>

    Returns undefined | T

  • Parameters

    • name: string

    Returns unknown

  • Parameters

    • index: number

    Returns unknown

getOr

  • getOr<T, E>(look: Look<T, any>, elseValue: E): T | E
  • getOr(name: string, elseValue: unknown): unknown
  • getOr(index: number, elseValue: unknown): unknown
  • Type parameters

    • T

    • E

    Parameters

    • look: Look<T, any>
    • elseValue: E

    Returns T | E

  • Parameters

    • name: string
    • elseValue: unknown

    Returns unknown

  • Parameters

    • index: number
    • elseValue: unknown

    Returns unknown

has

  • has(look: Look<any, never>): boolean
  • has(name: string): boolean
  • Parameters

    • look: Look<any, never>

    Returns boolean

  • Parameters

    • name: string

    Returns boolean

interpolateTo

  • Parameters

    Returns Interpolator<FeelVector>

  • Parameters

    • that: unknown

    Returns null | Interpolator<FeelVector>

isEmpty

  • isEmpty(): boolean
  • Returns boolean

minus

  • Parameters

    Returns FeelVector

negative

  • Returns FeelVector

plus

  • Parameters

    Returns FeelVector

times

  • Parameters

    • scalar: number

    Returns FeelVector

toString

  • toString(): string
  • Returns string

updated

  • Type parameters

    • T

    • U = never

    Parameters

    • look: Look<T, U>
    • value: undefined | T | U

    Returns FeelVector

  • Parameters

    Returns FeelVector

Static empty

  • Returns FeelVector

Static fromAny

  • Parameters

    Returns FeelVector

Static fromArray

  • fromArray(array: readonly [Look<unknown, never>, unknown][], index?: {}): FeelVector
  • Parameters

    • array: readonly [Look<unknown, never>, unknown][]
    • Optional index: {}
      • [name: string]: number | undefined

    Returns FeelVector

Static index

  • index<T>(array: readonly [Look<T, never>, T][]): {}
  • Type parameters

    • T

    Parameters

    • array: readonly [Look<T, never>, T][]

    Returns {}

    • [name: string]: number | undefined

Static of

  • Parameters

    • Rest ...looks: [Look<unknown, never>, unknown][]

    Returns FeelVector

Generated using TypeDoc