azu / azu/immutable-array-prototype
copyWithIn() with Array-like
- Vorherrschende Sprache
- TypeScript
- Sterne
- 59
- Forks
- 3
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Currently, following behavior.
```js
import { copyWithin } from "@immutable-array/copyWithin";
const arrayLike = { length: 5, 3: 1 };
let actual = copyWithin(arrayLike, 0, 3);
assert.deepStrictEqual(actual, [1, , , 1,]);
```
Native `Array#copyWithIn()` work following:
```js
[].copyWithin.call({length: 5, 3: 1}, 0, 3);
// {0: 1, 3: 1, length: 5}
```
It return just array-like object.
Is this no problem?
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Start at the @immutable-array/copyWithin entry point and compare its array-like behavior with Array#copyWithin.call using the supplied example. Confirm whether the intended result is the original array-like object or the returned array, then check for a relevant regression test and define the expected result before changing anything.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, typescript
- Bereich
- developer-experience
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100