function tabs(numTabs, prefix) {
    if (!Number.isInteger(numTabs) || numTabs < 1) {
        throw new Error('Expected positive integer.');
    }
    const firstTab = prefix ? `${prefix}${TWO_SPACES}` : TWO_SPACES;
    if (numTabs === 1) {
        return firstTab;
    }
    return firstTab + new Array(numTabs).join(TWO_SPACES);
}
/**
 * @param numTabs - The number of tabs to return. A tab consists of two spaces.
 * @param prefix - The prefix to prepend to the returned string, if any.
 * @returns A string consisting of the prefix, if any, and the requested number
 * of tabs.
 */
@param numTabs - The number of tabs to return. A tab consists of two spaces.
@param prefix - The prefix to prepend to the returned string, if any.
@returns A string consisting of the prefix, if any, and the requested number
of tabs.
@param numTabs - The number of tabs to return . A tab consists of two spaces . @param prefix - The prefix to prepend to the returned string if any . @returns A string consisting of the prefix if any and the requested number of tabs .
function tabs(numTabs, prefix) {
    if (!Number.isInteger(numTabs) || numTabs < 1) {
        throw new Error('Expected positive integer.');
    }
    const firstTab = prefix ? `${prefix}${TWO_SPACES}` : TWO_SPACES;
    if (numTabs === 1) {
        return firstTab;
    }
    return firstTab + new Array(numTabs).join(TWO_SPACES);
}
function tabs ( numTabs , prefix ) { if ( ! Number . isInteger ( numTabs ) || numTabs < 1 ) { throw new Error ( 'Expected positive integer.' ) ; } const firstTab = prefix ? ` ${ prefix } ${ TWO_SPACES } ` : TWO_SPACES ; if ( numTabs === 1 ) { return firstTab ; } return firstTab + new Array ( numTabs ) . join ( TWO_SPACES ) ; }
@param numTabs - The number of tabs to return.
@param numTabs - The number of tabs to return .