Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new RecordCursor(record: Record, lower?: number, upper?: number, index?: number): RecordCursor
  • Parameters

    • record: Record
    • Optional lower: number
    • Optional upper: number
    • Optional index: number

    Returns RecordCursor

Properties

Readonly direction

direction: number

Readonly index

index: number

Readonly lower

lower: number

Readonly record

record: Record

Readonly upper

upper: number

Methods

delete

  • delete(): void
  • Returns void

hasNext

  • hasNext(): boolean
  • Returns boolean

hasPrevious

  • hasPrevious(): boolean
  • Returns boolean

head

  • Returns Item

isEmpty

  • isEmpty(): boolean
  • Returns boolean

next

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

    • done: boolean
    • Optional value?: Item

nextIndex

  • nextIndex(): number
  • Returns number

previous

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

    • done: boolean
    • Optional value?: Item

previousIndex

  • previousIndex(): number
  • Returns number

set

  • set(newItem: Item): void
  • Parameters

    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