Settings

Theme

Ask HN: Happy numbers in JavaScript that's readable and ESLint-able?

1 points by alansmitheebk 8 years ago · 0 comments · 1 min read


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

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection