Function parseBoolean

  • Parses a string into a boolean.

    Accepted values (case insensitive):

    • true: 'TRUE', 'T', 'YES', 'Y', '1'
    • false: 'FALSE', 'F', 'NO', 'N', '0'

    Parameters

    • string: string

    Returns boolean

    Throws

    Will throw an error if the input string is not a valid input.

Generated using TypeDoc