Options
All
  • Public
  • Public/Protected
  • All
Menu

Ideas contains an array of items in which every item is an array of strings and HTML elements, a whitespace-only string or a ParsedObj.

example

Contents of Ideas internal array

{
 arr: [
   ["Integer nec odio."],
   " ",
   ["Praesent ", <strong>, ", nibh elementum imperdiet."],
   " ",
   ["Sed cursus ante dapibus diam."],
   " ",
   [ParsedObj],
   " ",

 ]
}

Hierarchy

  • default

Index

Constructors

constructor

Properties

Private arr

arr: Idea[]

Methods

addIdea

  • addIdea(): void
  • Adds an empty array into Ideas array.

    remarks

    Mutates the internal state of the object

    Returns void

addObj

  • Adds Object into the Ideas array.

    remarks

    Mutates the internal state of the object

    Parameters

    Returns void

appendToIdea

fetch

  • Returns filtered (non-empty) and whitespace-separated ideas.

    remarks

    This function is used to produce array that is assigned to ParsedObj ideas public param.

    Returns Idea[]

Private isNotEmpty

  • Checks if idea piece isn’t empty array or empty string.

    Parameters

    Returns boolean

    False if piece is empty array or empty string, otherwise true

Private separateWhitespace

  • Splits whitespace from IdeasItemPieces’s strings into separate strings.

    Parameters

    • piece: Idea

      IdeasItem

    Returns IdeaPiece[]

    Array of pieces, in which non-whitespace strings do not contain opening or trailing whitespace.

Generated using TypeDoc