Converts a single character to a single Digit object
The character to convert to a Digit object
Takes in the temperature in a string format and returns a Digit object for every character in the string
The temperature in string format to convert to Digits
Generated using TypeDoc
StringConverter Class Takes a string and converts it to an array of Digit objects
import { StringConverter } from '@maximva/examenopdracht-maximva' const stringToDigits: StringConverter = new StringConverter const temperature = "23.25 °C" const digits: Digit[] = stringToDigits.getDigits(temperature)