mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-07-18 14:13:24 +09:00
feat(04): use const instead of var in solution (#456)
This commit is contained in:
@@ -20,7 +20,7 @@ const removeFromArray = function (array, ...args) {
|
|||||||
// A simpler, but more advanced way to do it is to use the 'filter' function,
|
// 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.
|
// 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))
|
// return array.filter(val => !args.includes(val))
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user