Gimp.Item.prototype.is_group

function is_group(): Boolean {
    // Gjs wrapper for gimp_item_is_group()
}
  

Returns whether the item is a group item.

This procedure returns TRUE if the specified item is a group item which can have children.

Since 2.8

Returns

TRUE if the item is a group, FALSE otherwise.