ESODecoded

IsUnitGrouped

ESO Lua API function — used by 161 of the 3,030 addons we indexed (combined 21,323,134 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

IsUnitGrouped(string unitTag)

Returns: bool isGrouped

Real usage — from HodorReflexes - DPS & ULT tracker

core.RegisterSubCommand("test", GetString(HR_CORE_GROUP_COMMAND_TEST_HELP), function(str)
    if IsUnitGrouped(localPlayer) then
        df("|cFF0000%s|r %s", addon_name, GetString(HR_CORE_GROUP_COMMAND_TEST_LEAVE_GROUP))

Short excerpt from the shipping addon HodorReflexes - DPS & ULT trackerits ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
HodorReflexes - DPS & ULT tracker3,446,840
LibMapPing2,827,802
RaidNotifier Updated2,789,746
LibZone1,937,031
Loot Log1,608,502
Provision's TeamFormation : Teammate Radar1,506,270