Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function count,
IteratorT extends std.base.Iterator,
ReverseT extends std.base.ReverseIterator>
(entityGroup: IEntityGroup, key: any): number
{
return std.count_if(entityGroup.begin(), entityGroup.end(),
function (entity: T): boolean
{
return std.equal_to(entity.key(), key);
}
);
}