This is an inbox layout.

Check one item

Hold down your Shift key

Check a lower item

Everything inbetween should also be set to checked

Built without any libraries

Just regular JavaScript

Adding more HTML elements won't break it

As such it is an ambigious pure ES6 function!