[jQuery] How to get sum of children element's width

[jQuery] How to get sum of children element's width


This is the way I got the size now, is there any function can do the
same thing?
Html code
<div>
    <img src="..........
    <img src="..........
    <img src="..........
</div>
<script>
    $(function()
    {
        $sum = 0;
        $('div img').each(function()
        {
            $sum += $(this).width();
        });
        console.log($sum);
    });
</script>