Arguments.callee is deprecated – what should be used instead?

Yes, that’s what, theoretically, should be used. You’re right. However, it doesn’t work in some versions of Internet Explorer, as always. So be careful. You may need to fall back on arguments.callee, or, rather, a simple:

function callback() {
    // ...
    setTimeout(callback, 100);
}

setTimeout(callback, 100);

Which does work on IE.

Leave a Comment