
Splatty-doo and Other JavaScript Features You Should Avoid - JSJ 543
JavaScript Jabber
00:00
The Arguments Are Not Object Directly. I'll Agree With That.
Using a variablea number of arguments is not a great idea, that you should pass in an error instead. The only cases i think tat where it does make sense, as when you're kind of rapping functions for some reason. I don't like the whole the syntax around the the splatty do where they've got the dots on the wrong side. But again, this is exactly what arguments is for. Do do square brackets dhats that slice dot call arguments gives you back an array at you can use the arguments. If you're using a strict mode, then the tat pointer thing doesn't exist.
Transcript
Play full episode