feat: boost academic terms dynamically

This commit is contained in:
Wieland Schöbl
2019-09-24 10:44:40 +02:00
committed by Rainer Killinger
parent afd324fc6a
commit 13938ecf21
7 changed files with 164 additions and 37 deletions

View File

@@ -20,6 +20,16 @@ import {readFileSync} from 'fs';
import {resolve} from 'path';
import {BackendTransport} from './notification/backend-transport';
/**
* Evaluates if a number is within the given range
*
* @param num The number that should be checked
* @param range Array of two numbers representing a range (inclusive interval)
*/
export function inRangeInclusive(num: number, range: number[]): boolean {
return num >= range[0] && num <= range[1];
}
/**
* Instance of the transport for sending mails
*/