(id, _, __, radix = 36)
| 4 | export const info = (txt) => console.log(`# - ${txt}`); |
| 5 | |
| 6 | export const idToBigInt = (id, _, __, radix = 36) => |
| 7 | [...id.toString()].reduce( |
| 8 | (r, v) => r.multipliedBy(radix).plus(parseInt(v, radix)), |
| 9 | new BigNumber(0), |
| 10 | ); |
| 11 | |
| 12 | export const buildHistogram = (numbers, bucketCount = 20) => { |
| 13 | const buckets = Array(bucketCount).fill(0); |
no outgoing calls
no test coverage detected
searching dependent graphs…