> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sourcery.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Dont-Reassign-Parameters

#### Sourcery rule id: `dont-reassign-parameters`

#### Description

Don't reassign parameter - ${param}


#### Match

```javascript
function foo(name, options, arguments) {
  name = 1;
}
```



#### Explanation

Reassigning parameters can lead to unexpected behavior, especially when accessing the arguments object.
It can also cause optimization issues, especially in V8.

From the [Airbnb JavaScript Style Guide](https://airbnb.io/javascript/#functions--reassign-params)
