com-tools
Version:
com-tools 提供了一些通用的工具函数;
68 lines (32 loc) • 800 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [com-tools](./com-tools.md) > [array\_deleteItems](./com-tools.array_deleteitems.md)
## array\_deleteItems() function
deleteItems(...items) 删除数组中指定的元素
**Signature:**
```typescript
export declare function array_deleteItems<T>(array: T[], ...items: T[]): number[];
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
array
</td><td>
T\[\]
</td><td>
</td></tr>
<tr><td>
items
</td><td>
T\[\]
</td><td>
</td></tr>
</tbody></table>
**Returns:**
number\[\]
Array<number> 被删除的元素的索引数组