azu / azu/immutable-array-prototype

copyWithIn() with Array-like

Ouverte
#20 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
help wanted
Langage dominant
TypeScript
Étoiles
59
Forks
3
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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?

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
javascript, typescript
Domaine
developer-experience
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.