Class TreeSet

Constructors

Properties

comparator: any
elements: any[]
length: number

Methods

  • Parameters

    • element: any

    Returns void

  • Performs a binary search of value in array

    Parameters

    • value: number

      Value to search in array

    Returns number

    If value is found, returns its index in array. Otherwise, returns a negative number indicating where the value should be inserted: -(index + 1)

  • Returns boolean

  • Returns null | any[]

  • Returns null | any[]