var entity = new IgeEntity();
entity.addGroup('g1', 'g2');
// This will output "['g1', 'g2']"
console.log(entity.groups());
// Remove entity from a single group
entity.removeGroup('g1');
// This will output "['g2']"
console.log(entity.groups());
var entity = new IgeEntity();
entity.addGroup('g1', 'g3', 'g2');
// This will output "['g1', 'g3', 'g2']"
console.log(entity.groups());
// Remove entity from multiple groups
entity.removeGroup('g1', 'g3');
// This will output "['g2']"
console.log(entity.groups());
var entity = new IgeEntity();
entity.addGroup('g1', 'g3', 'g2');
// This will output "['g1', 'g3', 'g2']"
console.log(entity.groups());
// Remove entity from multiple groups
entity.removeGroup(['g1', 'g3']);
// This will output "['g2']"
console.log(entity.groups());
var entity = new IgeEntity();
entity.addGroup('g1', 'g2', 'g3', 'g4', 'g5', 'g6', 'g7');
// This will output "['g1', 'g2', 'g3', 'g4', 'g5', 'g6', 'g7']"
console.log(entity.groups());
// Remove entity from multiple groups
entity.removeGroup(['g1', 'g3'], ['g5', 'g6', 'g7']);
// This will output "['g2', 'g4']"
console.log(entity.groups());