Module: ensureRepeatingCharacters

Members

(inner) characters

Remove any currently repeating characters, as they will through us off count.

Source:

Methods

(inner) ensureRepeatingCharacters(string, options) → {string}

Ensures a string contains repeating characters.

Parameters:
NameTypeDescription
stringstring

The string to ensure contains repeating characters.

optionsensureRepeatingCharacterOptions

An object defining how to repeat the characters in the string. If none of the matching attributes are passed with this object, the string will be returned unmodified.

Source:
Requires:
Returns:

A string with the desired repeating character requirements.

Type
string