3 ms·
You can golf away 8 characters by replacing [].foreach.call(a, b) -> a.forEach(b) ... since the value returned by `querySelectorAll` has a `forEach` metho
by strkek 9y ago
You can golf away 8 characters by replacing
[].foreach.call(a, b) -> a.forEach(b)
... since the value returned by `querySelectorAll` has a `forEach` method. And 5 more if you replace:
'body *' -> '*'
- myfonj 9y agoAh, thanks for headsup, I somewhat missed the moment NodeList got sufficiently widespread forEach support. Good to know. In fact my intention was just to add check for `sticky` value along the `fixed` one; the 'golfing' approach was just habitual laziness…