Samuel
@samuel.fm
JS: oh? you think arr.every(x => !!x).map(…) is safe? think again fucko
3 13anyway found a nasty little crash caused by sparse arrays and implicit reliance on the order of things rendering
Prevent sparse arrays in snapToOffsets by mozzius · Pull Request #9329 · bluesky-social/social-app
I accidentally introduced something quite stupid in #7128 - it would lay out all the interest tabs, and then when all the tabs had been all laid out, it would set the offsets to snapToOffsets. Howe...
github.com
.filter(...) ? .every would return a bool, right?
1 3.filter(() => true) returns the same array except without the empty slots