elijah seed-arita @elij.dev · Nov 9

i think my approach to finding the bounding rect of a set of nodes is pretty clean. is there a better way in javascript?

6 likes 2 replies

?

Replies

ABRAXIS · Dec 6

This sent me on a rabbit-hole that is now too large for a message... 1/n

Allan Deutsch · Nov 10

Your code is quite concise! Do you care about perf? A single loop over the array is probably faster. If suitable for you, getBoundingClientRect() might be better.