Checks if the entity is in the specified group or array of group names. If multiple group names are passed as an array, the method will return true if the entity is in ANY of the the passed groups.
inAnyGroup (*groupName)
*groupNameThe name of the group or array of group names to check if this entity is a member of.
Returns Boolean
Check if entity belongs to any of the passed groups
// Add a couple of groups
var entity = new IgeEntity();
entity.addGroup('g1', 'g2');
// This will output "false"
console.log(entity.inAnyGroup('g3'));
// This will output "true"
console.log(entity.inAnyGroup(['g3', 'g1']));