UNPKG

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.25 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [ATypedArrayTuple](./rc-js-util.atypedarraytuple.md) &gt; [copyWithin](./rc-js-util.atypedarraytuple.copywithin.md) ## ATypedArrayTuple.copyWithin() method Returns the this object after copying a section of the array identified by start and end to the same array starting at position target **Signature:** ```typescript copyWithin(_target: number, _start: number, _end?: number): this; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> \_target </td><td> number </td><td> If target is negative, it is treated as length+target where length is the length of the array. </td></tr> <tr><td> \_start </td><td> number </td><td> If start is negative, it is treated as length+start. If end is negative, it is treated as length+end. </td></tr> <tr><td> \_end </td><td> number </td><td> _(Optional)_ If not specified, length of the this object is used as its default value. </td></tr> </tbody></table> **Returns:** this