EntityCollection\<T\>
Defined in: shared.d.ts:75
Live array-like view over the replicated entity handles of one category. Every member re-walks the replication set at call time, so the contents follow the world without being refreshed.
This is not an Array and not iterable: there is no index access, no spreading, and for..of throws.
Use forEach to walk it, or filter/map to obtain a real array.
Type Parameters
Section titled “Type Parameters”T
Methods
Section titled “Methods”every()
Section titled “every()”every(
callback):boolean
Defined in: shared.d.ts:83
Parameters
Section titled “Parameters”callback
Section titled “callback”(entity) => unknown
Returns
Section titled “Returns”boolean
filter()
Section titled “filter()”filter(
callback):T[]
Defined in: shared.d.ts:79
Parameters
Section titled “Parameters”callback
Section titled “callback”(entity) => unknown
Returns
Section titled “Returns”T[]
find()
Section titled “find()”find(
callback):T|undefined
Defined in: shared.d.ts:80
Parameters
Section titled “Parameters”callback
Section titled “callback”(entity) => unknown
Returns
Section titled “Returns”T | undefined
forEach()
Section titled “forEach()”forEach(
callback):void
Defined in: shared.d.ts:78
Parameters
Section titled “Parameters”callback
Section titled “callback”(entity) => void
Returns
Section titled “Returns”void
map<
U>(callback):U[]
Defined in: shared.d.ts:81
Type Parameters
Section titled “Type Parameters”U
Parameters
Section titled “Parameters”callback
Section titled “callback”(entity) => U
Returns
Section titled “Returns”U[]
some()
Section titled “some()”some(
callback):boolean
Defined in: shared.d.ts:82
Parameters
Section titled “Parameters”callback
Section titled “callback”(entity) => unknown
Returns
Section titled “Returns”boolean
Properties
Section titled “Properties”length
Section titled “length”
readonlylength:number
Defined in: shared.d.ts:77
Number of entities in the collection right now.
