js/custom.js
/**
 * Iterate over an HTMLCollection and perform an action on each element.
 * @param  {HTMLCollection} collection
 * @param  {function} action
 */
Iterate over an HTMLCollection and perform an action on each element.
@param  {HTMLCollection} collection
@param  {function} action
Iterate over an HTMLCollection and perform an action on each element . @param { HTMLCollection } collection @param { function } action
function iterateCollection(collection, action) {
  for (var i = 0; i < collection.length; i++) {
    action(collection[i]);
  }
}
function iterateCollection ( collection , action ) { for ( var i = 0 ; i < collection . length ; i ++ ) { action ( collection [ i ] ) ; } }
Iterate over an HTMLCollection and perform an action on each element.
Iterate over an HTMLCollection and perform an action on each element .