Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • V

Hierarchy

Index

Constructors

constructor

  • Type parameters

    • V

    Parameters

    Returns ValueCursor<V>

Properties

Readonly cursor

cursor: Cursor<Value>

Readonly form

form: Form<V, unknown>

Methods

delete

  • delete(): void
  • Returns void

hasNext

  • hasNext(): boolean
  • Returns boolean

hasPrevious

  • hasPrevious(): boolean
  • Returns boolean

head

  • head(): V
  • Returns V

isEmpty

  • isEmpty(): boolean
  • Returns boolean

next

  • next(): { done: boolean; value?: V }
  • Returns { done: boolean; value?: V }

    • done: boolean
    • Optional value?: V

nextIndex

  • nextIndex(): number
  • Returns number

previous

  • previous(): { done: boolean; value?: V }
  • Returns { done: boolean; value?: V }

    • done: boolean
    • Optional value?: V

previousIndex

  • previousIndex(): number
  • Returns number

set

  • set(newValue: V): void
  • Parameters

    • newValue: V

    Returns void

skip

  • skip(count: number): void
  • Parameters

    • count: number

    Returns void

step

  • step(): void
  • Returns void

Static array

  • array<T>(array: readonly T[], index?: number, limit?: number): Cursor<T>
  • Type parameters

    • T

    Parameters

    • array: readonly T[]
    • Optional index: number
    • Optional limit: number

    Returns Cursor<T>

Static empty

  • Type parameters

    • T

    Returns Cursor<T>

Static unary

  • unary<T>(value: T): Cursor<T>
  • Type parameters

    • T

    Parameters

    • value: T

    Returns Cursor<T>

Generated using TypeDoc