• Returns a string value of '1'/'0' from the boolean value

    Parameters

    • Optionalvalue: boolean

      the boolean value to check

    Returns string | undefined

    the string value of '1'/'0' from the boolean value

    toString10(true);    // '1'