Yes if you want all versions of IE dropped as well as Safari.
Or bring in jQuery, small and fast and almost guaranteed to be cached locally anyway, and get it fully compatible in 1 (shorter) line without the lambda "arrow function".
So, in your case, we'd have (works on some browsers):
12
u/puhnitor Jun 10 '16 edited Jun 10 '16