MCPcopy Create free account
hub / github.com/TheAlgorithms/JavaScript / CheckInput

Function CheckInput

Maths/GetEuclidGCD.js:1–5  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

1function CheckInput(a, b) {
2 if (typeof a !== 'number' || typeof b !== 'number') {
3 throw new TypeError('Arguments must be numbers')
4 }
5}
6
7/**
8 * GetEuclidGCD Euclidean algorithm to determine the GCD of two numbers

Callers 2

GetEuclidGCDFunction · 0.85
GetEuclidGCDRecursiveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected