Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EmptyBaseCollection

Hierarchy

  • BaseCollection<any, any>
    • EmptyBaseCollection

Index

Constructors

constructor

  • Parameters

    • Optional __namedParameters: object
      • expire: undefined | number
      • intervalTime: undefined | number
      • limit: undefined | number

    Returns EmptyBaseCollection

Properties

[Symbol.toStringTag]

[Symbol.toStringTag]: string

Optional _lastUsed

_lastUsed: Map<any, number>

cache

cache: Map<any, any>

Optional expire

expire: undefined | number

Optional interval

interval: Timers.Interval

intervalTime

intervalTime: number

lastUsed

lastUsed: Map<any, number>

length

length: number

limit

limit: number

shouldStartInterval

shouldStartInterval: boolean

size

size: number

Methods

[Symbol.iterator]

  • [Symbol.iterator](): IterableIterator<[any, any]>
  • Returns IterableIterator<[any, any]>

clear

  • clear(): void
  • Returns void

clone

  • clone(): BaseCollection<any, any>
  • Returns BaseCollection<any, any>

delete

  • delete(): boolean
  • Returns boolean

entries

  • entries(): IterableIterator<[any, any]>
  • Returns IterableIterator<[any, any]>

every

  • every(func: function): boolean
  • Parameters

    • func: function
        • (v: any, k: any): boolean
        • Parameters

          • v: any
          • k: any

          Returns boolean

    Returns boolean

filter

  • filter(func: function): Array<any>
  • Parameters

    • func: function
        • (v: any, k: any): boolean
        • Parameters

          • v: any
          • k: any

          Returns boolean

    Returns Array<any>

find

  • find(func: function): any | undefined
  • Parameters

    • func: function
        • (v: any, k: any): boolean
        • Parameters

          • v: any
          • k: any

          Returns boolean

    Returns any | undefined

first

  • first(): any | undefined
  • Returns any | undefined

forEach

  • forEach(func: function, thisArg?: any): void
  • Parameters

    • func: function
        • (v: any, k: any, map: Map<any, any>): void
        • Parameters

          • v: any
          • k: any
          • map: Map<any, any>

          Returns void

    • Optional thisArg: any

    Returns void

get

  • get(): any
  • Returns any

has

  • has(): boolean
  • Returns boolean

join

  • join(separator?: undefined | string): string
  • Parameters

    • Optional separator: undefined | string

    Returns string

keys

  • keys(): IterableIterator<any>
  • Returns IterableIterator<any>

map

  • map(func: function): Array<any>
  • Parameters

    • func: function
        • (v: any, k: any): any
        • Parameters

          • v: any
          • k: any

          Returns any

    Returns Array<any>

reduce

  • reduce(func: function, initialValue?: any): any
  • Parameters

    • func: function
        • (intial: any, v: any): any
        • Parameters

          • intial: any
          • v: any

          Returns any

    • Optional initialValue: any

    Returns any

set

  • set(): this
  • Returns this

setExpire

  • setExpire(value: number): this
  • Parameters

    • value: number

    Returns this

setIntervalTimeout

  • setIntervalTimeout(value: number): this
  • Parameters

    • value: number

    Returns this

some

  • some(func: function): boolean
  • Parameters

    • func: function
        • (v: any, k: any): boolean
        • Parameters

          • v: any
          • k: any

          Returns boolean

    Returns boolean

sort

  • sort(func?: undefined | function): Array<any>
  • Parameters

    • Optional func: undefined | function

    Returns Array<any>

startInterval

  • startInterval(): void
  • Returns void

stopInterval

  • stopInterval(): void
  • Returns void

toArray

  • toArray(): Array<any>
  • Returns Array<any>

toJSON

  • toJSON(): Array<any>
  • Returns Array<any>

toString

  • toString(): string
  • Returns string

values

  • values(): IterableIterator<any>
  • Returns IterableIterator<any>

Generated using TypeDoc