azu / azu/immutable-array-prototype

copyWithIn() with Array-like

Open
#20 0 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
TypeScript
Stars
59
Forks
3
PR merge metrics
No merged PRs in 30d

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.