JavaScript:实现判断一个数是否为krishnamurthy数的算法
/*
Problem statement and Explanation :
krishnamurthy number is a number the sum of the all factorial of the all dights is equal to the number itself.
145 => 1! + 4! + 5! = 1 + 24 + 120 = 145
*/
// factorial utility method.
const factorial = (n) => {
let</