// Add a couple of groups
var entity = new IgeEntity();
entity.addGroup(['g1', 'g2']);
// This will output "false" (entity is not part of g3)
console.log(entity.inAllGroups(['g1', 'g3']));
// This will output "true"
console.log(entity.inAllGroups('g1'));
// This will output "true"
console.log(entity.inAllGroups(['g1', 'g2']));