4 ms·
From the footnote: "Well, actually, this does not work for arrays that contain undefined as a value, but we are not going to see that in our examples. A more r
by picks_at_nits 12y ago
From the footnote:
"Well, actually, this does not work for arrays that contain undefined as a value, but we are not going to see that in our examples. A more robust implementation would be (array) => array.length === 0, but we are doing backflips to keep this within a very small and contrived playground.”
http://raganwald.com/2015/02/02/destructuring.html#fn:wellactually http://raganwald.com/2015/02/02/destructuring.html#fn:wellac...
- philsnow 12y agoah, thanks for pointing that out, I came here and ctrl+f'ed for 'undefined' but did not do the same in the article.