I want to do something if all .cimg
have the same width.
<img class='cimg' src='...' alt='img'>
<img class='cimg' src='...' alt='img'>
<img class='cimg' src='...' alt='img'>
js
let w = $.map($('.cimg'), (e) => $(e)[0].naturalWidth);
result - [960, 960, 960]
if(all elements of w are equal){do_something();} // how to do this?