主题
Home > @esengine/ecs-framework-monorepo > SparseSet > map
映射集合中的所有元素
Signature:
map<U>(callback: (item: T, index: number) => U): U[];
Parameter
Type
Description
callback
(item: T, index: number) => U
映射回调函数
Returns:
U[]
映射后的新数组