fix typing style

This commit is contained in:
Suryapratap Singh
2021-09-07 03:23:38 +05:30
parent 617ec6ba27
commit 7fb345b4bd

View File

@ -22,7 +22,7 @@ const GetEuclidGCD = require('./GetEuclidGCD')
const CoPrimeCheck = (firstNumber, secondNumber) => {
// firstly, check that input is a number or not.
if (typeof firstNumber !== 'number' || typeof secondNumber !== 'number') {
return new TypeError('Argument is not a number.');
return new TypeError('Argument is not a number.')
}
/*
This is the most efficient algorithm for checking co-primes