Skip to main content

Timeline for Exploded view of a string

Current License: CC BY-SA 3.0

7 events
when toggle format what by license comment
Aug 28, 2016 at 9:04 comment added Neil @TejasKale That's an ES6 template string. When you prefix a method to a template string, it passes the template as an array to the method, so in this case, it ends up calling .join(['']). join then converts that to the (empty) string and uses that to join the array elements. Not all methods convert their parameter to string, but this technique is handy on those that do.
Aug 28, 2016 at 9:01 comment added Tejas Kale Umm, how is join() being called with those double backkticks ?
Aug 25, 2016 at 0:21 comment added Neil @ValueInk Bah, I thought about that when I started, but promptly forgot. Fixed now.
Aug 25, 2016 at 0:20 history edited Neil CC BY-SA 3.0
added 1 character in body
Aug 24, 2016 at 23:55 review Low quality posts
Aug 25, 2016 at 0:11
Aug 24, 2016 at 23:46 comment added Value Ink Wouldn't this also cause an entry " " to exist in the returned array, as well? Not sure if that's allowed
Aug 24, 2016 at 23:34 history answered Neil CC BY-SA 3.0