Options
All
  • Public
  • Public/Protected
  • All
Menu

Class KeysCursor<K, V>

Type parameters

  • K

  • V

Hierarchy

Index

Constructors

constructor

  • Type parameters

    • K

    • V

    Parameters

    Returns KeysCursor<K, V>

Properties

Readonly cursor

cursor: Cursor<[K, V]>

Methods

delete

  • delete(): void
  • Returns void

hasNext

  • hasNext(): boolean
  • Returns boolean

hasPrevious

  • hasPrevious(): boolean
  • Returns boolean

head

  • head(): K
  • Returns K

isEmpty

  • isEmpty(): boolean
  • Returns boolean

next

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

    • done: boolean
    • Optional value?: K

nextIndex

  • nextIndex(): number
  • Returns number

previous

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

    • done: boolean
    • Optional value?: K

previousIndex

  • previousIndex(): number
  • Returns number

set

  • set(newValue: K): void
  • Parameters

    • newValue: K

    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