> ## 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.

# Binary-Operator-Identity

#### Sourcery rule id: `binary-operator-identity`

#### Description

Simplify binary operation


#### Before

```javascript
2 - 2
```

#### After

```javascript
0
```



#### Explanation

Some identities can be applied to simplify certain binary operations. For example
writing `x - x` is a complicated way of saying `0`.
