rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
86 lines (40 loc) • 1.17 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [rc-js-util](./rc-js-util.md) > [ATypedArrayTuple](./rc-js-util.atypedarraytuple.md) > [fill](./rc-js-util.atypedarraytuple.fill.md)
## ATypedArrayTuple.fill() method
Returns the this object after filling the section identified by start and end with value
**Signature:**
```typescript
fill(_value: number, _start?: number, _end?: number): this;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
\_value
</td><td>
number
</td><td>
value to fill array section with
</td></tr>
<tr><td>
\_start
</td><td>
number
</td><td>
_(Optional)_ index to start filling the array at. If start is negative, it is treated as length+start where length is the length of the array.
</td></tr>
<tr><td>
\_end
</td><td>
number
</td><td>
_(Optional)_ index to stop filling the array at. If end is negative, it is treated as length+end.
</td></tr>
</tbody></table>
**Returns:**
this