I know what it is and how it's being used, my issue is with this being on a slide titled "good code", the fact that you can mistake my comment as a developer not understanding what that code does further proves my point
1. The tests could be a little stricter, what I have it just an example.
2. You're right, it should have been:
// if name is omitted
args.splice(0, 0, null);
// if deps is omitted
args.splice(1, 0, [])
// if fn is ommited
args.splice(2, 0, noop);
I'll edit the post when I get a chance
data:text/html,<pre id=p><script>n=setInterval("for(n+=7,i=k,P='p.\\n';i-=1/k;P+=P[i%2?(i%2*j-j+n/k^j)&1:2])j=k/i;p.innerHTML=P",k=64)</script>One of the "good code" slides has this let startsWithVowel = word => !!~VOWELS.indexOf(word[0]); ?!