Skip to content

Commit

Permalink
feat(04): use const instead of var in solution (TheOdinProject#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaRevenco authored May 3, 2024
1 parent 1c322dd commit 1afbcf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 04_removeFromArray/solution/removeFromArray-solution.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const removeFromArray = function (array, ...args) {
// A simpler, but more advanced way to do it is to use the 'filter' function,
// which basically does what we did with the forEach above.

// var removeFromArray = function(array, ...args) {
// const removeFromArray = function(array, ...args) {
// return array.filter(val => !args.includes(val))
// }
//
Expand Down

0 comments on commit 1afbcf8

Please sign in to comment.