DEV Community

Discussion on: Put Down the Destructuring Hammer

Collapse
sleavely profile image
Joakim Hedlund

I get the feeling this approach won't work well with files such as foo.bar.js. You may want to reverse() after splitting and picking the first entry as extension instead.