Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 3x 96x 12x 84x 12x 72x 8x 64x 8x 3x | const assertInputTypes = (text: string, lang: string, slow: boolean, host: string) => {
if (typeof text !== 'string' || text.length === 0) {
throw new TypeError('text should be a string');
}
if (typeof lang !== 'string' || lang.length === 0) {
throw new TypeError('lang should be a string');
}
if (typeof slow !== 'boolean') {
throw new TypeError('slow should be a boolean');
}
if (typeof host !== 'string' || host.length === 0) {
throw new TypeError('host should be a string');
}
};
export default assertInputTypes;
|