feat(04): use const instead of var in solution (#456)

This commit is contained in:
Nikita Revenco
2024-05-03 02:12:28 +01:00
committed by GitHub
parent 1c322ddb47
commit 1afbcf8644
@@ -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))
// }
//