Function createBooleanParser

  • Creates a parser function that parses a string into a boolean.

    Parameters

    • trueValues: string[] = ...

      An array of strings that are considered true. Defaults to ['TRUE', 'T', 'YES', 'Y', '1'].

    • falseValues: string[] = ...

      An array of strings that are considered false. Defaults to ['', 'FALSE', 'F', 'NO', 'N', '0'].

    Returns ((string) => boolean)

      • (string): boolean
      • Parameters

        • string: string

        Returns boolean

Generated using TypeDoc