How to use the tstl.any_of function in tstl

To help you get started, we’ve selected a few tstl examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github samchon / framework / src / protocol / entity / IEntityGroup.ts View on Github external
export function has,
			IteratorT extends std.base.Iterator,
			ReverseT extends std.base.ReverseIterator>
		(entityGroup: IEntityGroup, key: any): boolean
	{
		return std.any_of(entityGroup.begin(), entityGroup.end(),
			function (entity: T): boolean
			{
				return std.equal_to(entity.key(), key);
			}
		);
	}