Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface StringConstructor

Hierarchy

  • StringConstructor

Callable

  • __call(value?: any): string
  • Parameters

    • Optional value: any

    Returns string

Index

Constructors

Properties

Methods

Constructors

constructor

  • new StringConstructor(value?: any): String
  • Parameters

    • Optional value: any

    Returns String

Properties

prototype

prototype: String

Methods

fromCharCode

  • fromCharCode(...codes: number[]): string
  • Parameters

    • Rest ...codes: number[]

    Returns string

fromCodePoint

  • fromCodePoint(...codePoints: number[]): string
  • Return the String value whose elements are, in order, the elements in the List elements. If length is 0, the empty string is returned.

    Parameters

    • Rest ...codePoints: number[]

    Returns string

raw

  • String.raw is intended for use as a tag function of a Tagged Template String. When called as such the first argument will be a well formed template call site object and the rest parameter will contain the substitution values.

    Parameters

    • template: TemplateStringsArray

      A well-formed template string call site representation.

    • Rest ...substitutions: any[]

      A set of substitution values.

    Returns string