Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
27
function
isHappycoin(num: u64): boolean {
28
return
isHappy(num) && num % 10000 === 0;
29
}
30
31
export
function
getHappycoins(num: u32): Array<u64> {
32
const
result =
new
Array<u64>();
Callers
1
getHappycoins
Function · 0.70
Calls
1
isHappy
Function · 0.70
Tested by
no test coverage detected