Options
All
  • Public
  • Public/Protected
  • All
Menu

This class takes a string through a constructor. The string is then split into an array with a different character on each index.

Hierarchy

  • Splitter

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new Splitter(_input: string): Splitter
  • Parameters

    • _input: string

      The input is a string of which the characters must be separated.

    Returns Splitter

Properties

Private _input

_input: string

The input is a string of which the characters must be separated.

Accessors

Private input

  • get input(): string
  • Returns string

    Returns the input that is given in the constructor.

Methods

getCharacters

  • getCharacters(): string[]
  • Returns string[]

    Give the array with the characters back to the user

Private split

  • split(): string[]
  • Returns string[]

    Returns an array with the next character of the string is on each index.

Generated using TypeDoc