src/illustrator/swatches.js
function addSwatchGroup(name) {
  var swatchGroup = doc.swatchGroups.add();
  swatchGroup.name = name;

  return swatchGroup;
}
function addSwatchGroup(name) {
  var swatchGroup = doc.swatchGroups.add();
  swatchGroup.name = name;

  return swatchGroup;
}
function addSwatchGroup ( name ) { var swatchGroup = doc . swatchGroups . add ( ) ; swatchGroup . name = name ; return swatchGroup ; }
Adds swatch group.

@param   {String} name
@returns {SwatchGroup}
Adds swatch group .