0c9668f77
4638cd713
1
2 3 4
5 6 7 8 9 10 11 12
13
export function forceNumber (value: any) { return parseInt(value + '') } export function isOdd (num: number) { return (num % 2) !== 0 } export function toEven (num: number) { if (isOdd(num)) return num + 1 return num }