src/socialshares.js
function getService (classList) {
  let service

  Object.keys(services).forEach(key => {
    if (classList.contains('socialshares-' + key)) {
      service = services[key]
      service.name = key
    }
  })

  return service
}
function getService (classList) {
  let service

  Object.keys(services).forEach(key => {
    if (classList.contains('socialshares-' + key)) {
      service = services[key]
      service.name = key
    }
  })

  return service
}
function getService ( classList ) { let service Object . keys ( services ) . forEach ( key => { if ( classList . contains ( 'socialshares-' + key ) ) { service = services [ key ] service . name = key } } ) return service }
Identifies the service based on the button's class and returns the metadata for that service.
Identifies the service based on the button s class and returns the metadata for that service .