mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-04 15:39:42 +08:00
Comply with ESM syntax.
This commit is contained in:
@ -41,4 +41,4 @@ const CheckKishnamurthyNumber = (number) => {
|
||||
return sumOfAllDigitFactorial === number
|
||||
}
|
||||
|
||||
module.exports = CheckKishnamurthyNumber
|
||||
export { CheckKishnamurthyNumber }
|
||||
|
@ -37,4 +37,4 @@ const CoPrimeCheck = (firstNumber, secondNumber) => {
|
||||
return GetEuclidGCD(firstNumber, secondNumber) === 1
|
||||
}
|
||||
|
||||
module.exports = CoPrimeCheck
|
||||
export { CoPrimeCheck }
|
||||
|
@ -29,4 +29,4 @@ const GetEuclidGCD = (arg1, arg2) => {
|
||||
return (less)
|
||||
}
|
||||
|
||||
module.exports = GetEuclidGCD
|
||||
export { GetEuclidGCD }
|
||||
|
@ -26,4 +26,4 @@ const ReverseNumber = (number) => {
|
||||
return reverseNumber
|
||||
}
|
||||
|
||||
module.exports = ReverseNumber
|
||||
export { ReverseNumber }
|
||||
|
@ -1,4 +1,4 @@
|
||||
const { binaryExponentiation } = require('../BinaryExponentiationRecursive')
|
||||
import { binaryExponentiation } from '../BinaryExponentiationRecursive'
|
||||
|
||||
describe('BinaryExponentiationRecursive', () => {
|
||||
it('should calculate 2 to the power of 10 correctly', () => {
|
||||
|
Reference in New Issue
Block a user