MCPcopy Create free account
hub / github.com/MultithreadedJSBook/code-samples / isHappycoin

Function isHappycoin

ch7-happycoin-as/happycoin.ts:27–29  ·  view source on GitHub ↗
(num: u64)

Source from the content-addressed store, hash-verified

25}
26
27function isHappycoin(num: u64): boolean {
28 return isHappy(num) && num % 10000 === 0;
29}
30
31export function getHappycoins(num: u32): Array<u64> {
32 const result = new Array<u64>();

Callers 1

getHappycoinsFunction · 0.70

Calls 1

isHappyFunction · 0.70

Tested by

no test coverage detected