@yookue/ts-lang-utils
    Preparing search index...

    Function toString

    • Returns a string value from the boolean value

      Parameters

      • Optionalvalue: boolean

        the boolean value to check

      • Optionaltruthy: string

        the string to represent true

      • Optionalfalsy: string

        the string to represent false

      • Optionalnil: string

        the string to represent undefined or null

      Returns undefined | string

      a string value from the boolean value

      David Hsing

      toString(undefined, 'true', 'false');    // 'true'