• Returns a string value of 'true'/'false' from the boolean value

    Parameters

    • Optionalvalue: boolean

      the boolean value to check

    Returns string | undefined

    the string value of 'true'/'false' from the boolean value

    toStringTrueFalse(true);    // 'true'