|
|
|
Ask HN: Happy numbers in JavaScript that's readable and ESLint-able?
|
|
1 points
by alansmitheebk
3218 days ago
|
|
Hi, I'm trying to learn how to code happy numbers in JS. I've seen a bunch of examples but most are either very difficult to read / understand, use implicity declared global variables, or have really bad style (according to ESLint / D. Crockford). Can anyone point me in the direction of a readable, clean, not-too-difficult-to-grok happy numbers func in JS? TIA |
|