project/src/main/webapp/update-volunteering-opportunity.js
/**
 * Populates inputs with skill labels that already exist.
 * @param {string[]} existingSkills skill labels for the opportunity.
 */
Populates inputs with skill labels that already exist.
@param {string[]} existingSkills skill labels for the opportunity.
Populates inputs with skill labels that already exist . @param { string [] } existingSkills skill labels for the opportunity .
function populateExistingSkills(existingSkills) {
  $('#skills').on('itemAdded', function() {
    removeExtraInputs('#skills');
  });
  for (const skill of existingSkills) {
    $('#skills').tagsinput('add', skill);
  }
}
function populateExistingSkills ( existingSkills ) { $ ( '#skills' ) . on ( 'itemAdded' , function ( ) { removeExtraInputs ( '#skills' ) ; } ) ; for ( const skill of existingSkills ) { $ ( '#skills' ) . tagsinput ( 'add' , skill ) ; } }
Populates inputs with skill labels that already exist.
Populates inputs with skill labels that already exist .