Answers for "jquery set object values in iterate"

21

jquery each

//Array
$.each( arr, function( index, value ){
    sum += value;
});

//Object
$.each( obj, function( key, value ) {
    sum += value;
});
Posted by: Guest on March-09-2020

Code answers related to "jquery set object values in iterate"

Code answers related to "Javascript"

Browse Popular Code Answers by Language