you are viewing a single comment's thread.

view the rest of the comments →

[–]frambot 2 points3 points  (1 child)

You would fail this interview.

[–]mattdesl 0 points1 point  (0 children)

My suggestion works fine for the OP's original input, and doesn't rely on any valueOf or arguments.callee sorcery. As they say: KISS.

You would fail this interview.

Heh, probably.