Open abhiphile opened 4 months ago
It will be better to also have a leastCommonMultiple function for an array where I could pass an array of elements and get the result.
leastCommonMultiple
export default function leastCommonMultiple(a, b) { return ((a === 0) || (b === 0)) ? 0 : Math.abs(a * b) / euclideanAlgorithm(a, b); }
Can I work on this one?
Yes Sure !
Created a PR for LCM on array of numbers
Can i work on it
1
Should I do it?
It will be better to also have a
leastCommonMultiple
function for an array where I could pass an array of elements and get the result.