MCPcopy Create free account
hub / github.com/esengine/esengine / some

Method some

packages/core/src/ECS/Utils/SparseSet.ts:198–205  ·  view source on GitHub ↗

* 检查是否存在满足条件的元素 * * @param predicate 检查条件 * @returns 是否存在满足条件的元素

(predicate: (item: T, index: number) => boolean)

Source from the content-addressed store, hash-verified

196 * @returns 是否存在满足条件的元素
197 */
198 public some(predicate: (item: T, index: number) => boolean): boolean {
199 for (let i = 0; i < this._dense.length; i++) {
200 if (predicate(this._dense[i]!, i)) {
201 return true;
202 }
203 }
204 return false;
205 }
206
207 /**
208 * 检查是否所有元素都满足条件

Callers 15

containsMethod · 0.45
callLaterMethod · 0.45
addListenerMethod · 0.45
AssetPickerDialogFunction · 0.45
removeLayerMethod · 0.45
BlueprintCanvasFunction · 0.45
isBlockedFunction · 0.45
hasWasmFilesFunction · 0.45
filterRemoteEntitiesFunction · 0.45
BuildSettingsPanelFunction · 0.45
SettingsWindowFunction · 0.45
handleValueChangeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected