mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 16:26:47 +08:00
fix typing style
This commit is contained in:
@ -22,7 +22,7 @@ const GetEuclidGCD = require('./GetEuclidGCD')
|
|||||||
const CoPrimeCheck = (firstNumber, secondNumber) => {
|
const CoPrimeCheck = (firstNumber, secondNumber) => {
|
||||||
// firstly, check that input is a number or not.
|
// firstly, check that input is a number or not.
|
||||||
if (typeof firstNumber !== 'number' || typeof secondNumber !== 'number') {
|
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
|
This is the most efficient algorithm for checking co-primes
|
||||||
|
Reference in New Issue
Block a user