Change all snippets from var to const
This commit is contained in:
@ -3,5 +3,5 @@
|
||||
Use `filter()` to remove values that are part of `values`, determined using `includes()`.
|
||||
|
||||
```js
|
||||
var difference = (arr, values) => arr.filter(v => !values.includes(v));
|
||||
const difference = (arr, values) => arr.filter(v => !values.includes(v));
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user