Iterates of the characters in the string
Converts the object into a primitive
The string to use for the default toString
function
Converts the primitive into it's JSON representation
the object to serialize with JSON.stringify
Converts the primitive into it's string representation
Retrieves the actual value of the number
A string primitive that will always stay within a certain range
const string = new CheckedString('hey', { regex: /hey/ }); string = 'whut'; // throw StringRangeError