azu / azu/immutable-array-prototype

copyWithIn() with Array-like

オープン
#20 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
help wanted
主要言語
TypeScript
スター
59
フォーク
3
PR マージ指標
30日以内にマージされた PR はありません

説明

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?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, typescript
領域
developer-experience
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。