8000 feat(04): use `const` instead of `var` in solution (#456) · 0xNull-ops/javascript-exercises@1afbcf8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1afbcf8

Browse files
authored
feat(04): use const instead of var in solution (TheOdinProject#456)
1 parent 1c322dd commit 1afbcf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

04_removeFromArray/solution/removeFromArray-solution.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const removeFromArray = function (array, ...args) {
2020
// A simpler, but more advanced way to do it is to use the 'filter' function,
2121
// which basically does what we did with the forEach above.
2222

23-
// var removeFromArray = function(array, ...args) {
23+
// const removeFromArray = function(array, ...args) {
2424
// return array.filter(val => !args.includes(val))
2525
// }
2626
//

0 commit comments

Comments
 (0)
0