Method: inAnyGroup

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)
  • *groupName The 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"

// This will output "true"
console.log(entity.inAnyGroup(['g3', 'g1']));
© Copyright 2013 Irrelon Software Limited. All Rights Reserved. UK Registered Company Number: 07522767
Isogenic (ī´sōjen´ik): Adj originating from a common source; possessing the same genetic composition.
Strange Things Happen at the One Two Point