azu / azu/immutable-array-prototype
copyWithIn() with Array-like
未关闭
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?
贡献指南
这个仓库没有索引到贡献指南
调研方向
从 @immutable-array/copyWithin 入口点开始,使用提供的示例将其类数组行为与 Array#copyWithin.call 进行比较。确认预期结果是原始类数组对象还是返回的数组,然后检查是否有相关的回归测试,并在进行任何更改之前确定预期结果。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, typescript
- 领域
- developer-experience
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100