Skip to content

Conversation

@43081j
Copy link
Contributor

@43081j 43081j commented Nov 30, 2025

splice doesn't return the mutated array, so this is a major rethink of
the codemod to instead match the following:

const arr = original.slice();
arr.splice(0, 1);

Note it currently only works with semi-colons and const.

`splice` doesn't return the mutated array, so this is a major rethink of
the codemod to instead match the following:

```ts
const arr = original.slice();
arr.splice(0, 1);
```

Note it currently only works with semi-colons and `const`.
@43081j 43081j merged commit d29d96f into main Nov 30, 2025
1 check passed
@43081j 43081j deleted the spliced-rework branch November 30, 2025 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants