WebCola
Options
All
  • Public
  • Public/Protected
  • All
Menu

A shim for ES6 sets. Is only able to store strings.

Hierarchy

  • Set

Index

Methods

add

  • add(value: string): string

empty

  • empty(): boolean

forEach

  • forEach(func: function): void
  • Calls a given function for each value in the set. The return value of the function is ignored. The this context of the function is the set itself.

    Parameters

    • func: function
        • (value: string): any
        • Parameters

          • value: string

          Returns any

    Returns void

has

  • has(value: string): boolean

remove

  • remove(value: string): boolean
  • Remove the given value from the set. Returns true if it was stored, and false otherwise.

    Parameters

    • value: string

    Returns boolean

size

  • size(): number

values

  • values(): string[]

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc