• Returns a string value of 'yes'/'no' from the boolean value

    Parameters

    • Optionalvalue: boolean

      the boolean value to check

    Returns string | undefined

    the string value of 'yes'/'no' from the boolean value

    toStringYesNo(true);    // 'yes'