azu / azu/immutable-array-prototype
copyWithIn() with Array-like
- 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
Research direction
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.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100