Hacker News new | ask | show | jobs
by mrweasel 2319 days ago
Your code sort of have the same issue. Why not define a function:

function someName(p1, p2) {}

and then when you need it for something, like a handler, just say:

handler: someName

1 comments

Hoped to show that JavaScript can be easier to read than you described.

Obviously wrong. My mistake.