SP.Taxonomy.TermStore.groups property (sp.taxonomy)
Gets a collection of SP.Taxonomy.TermGroup object (sp.taxonomy) objects from the term store.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.Taxonomy.TermStore.get_groups()
Return value
SP.Taxonomy.TermGroupCollection